فهرست منبع

临时需求

1、添加商品添加分部成本字段;
2、创建缴费时,乐团课原价字段可以进行编辑;
lex 2 سال پیش
والد
کامیت
f75801b317

+ 9 - 0
src/views/businessManager/shopManager/shopList.vue

@@ -422,6 +422,15 @@
           </el-table-column>
           <el-table-column
             align="center"
+            prop="organCostPrice"
+            label="分部成本(元)"
+          >
+            <template slot-scope="scope">
+              {{ scope.row.organCostPrice | moneyFormat }}
+            </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
             cell-style="padding: 0"
             label="商品缩略图"
           >

+ 20 - 0
src/views/businessManager/shopManager/shopOperation.vue

@@ -235,6 +235,16 @@
             style="width: 220px"
           ></el-input>
         </el-form-item>
+        <el-form-item label="分部成本" prop="organCostPrice">
+          <el-input
+            type="number"
+            placeholder="请输入分部成本"
+            @mousewheel.native.prevent
+            :disabled="pageDisabled"
+            v-model.trim="form.organCostPrice"
+            style="width: 220px"
+          ></el-input>
+        </el-form-item>
         <el-alert
           title="销售渠道"
           :closable="false"
@@ -540,6 +550,7 @@ export default {
         marketPrice: null,
         discountPrice: null,
         groupPurchasePrice: null,
+        organCostPrice: null,
         clientShow: null,
         educationalShow: null,
         musicGroupShow: null,
@@ -651,6 +662,13 @@ export default {
             trigger: "blur"
           }
         ],
+        organCostPrice: [
+          {
+            required: true,
+            validator: validPrice,
+            trigger: "blur"
+          }
+        ],
         clientShow: [
           { required: true, message: "请选择学员是否展示", trigger: "change" }
         ],
@@ -849,6 +867,7 @@ export default {
           marketPrice: null,
           discountPrice: null,
           groupPurchasePrice: null,
+          organCostPrice: null,
           clientShow: null,
           educationalShow: null,
           musicGroupShow: null,
@@ -924,6 +943,7 @@ replacementShowOrganId: 6,7 */
               marketPrice: result.marketPrice,
               discountPrice: result.discountPrice,
               groupPurchasePrice: result.groupPurchasePrice,
+              organCostPrice: result.organCostPrice,
               clientShow: result.clientShow,
               educationalShow: result.educationalShow,
               musicGroupShow: result.musicGroupShow,

+ 1 - 1
src/views/resetTeaming/modals/payTeamCourse.vue

@@ -218,7 +218,7 @@
               :controls="false"
               :precision="0"
               :min="0"
-              :disabled="true"
+              :disabled="false"
               placeholder="请输入原价"
             />
           </el-form-item>