浏览代码

【新增】销售政策计划单

howie 2 年之前
父节点
当前提交
d5621711fe

+ 1 - 1
src/views/supply/engin/components/commerce_form.vue

@@ -206,7 +206,7 @@
         </el-col>
         <el-col :xs="24" :sm="24" :lg="24">
           <el-form-item label="计划单">
-            <el-radio-group v-model="isPlanOrder" disabled>
+            <el-radio-group v-model="isPlanOrder">
               <el-radio label="true">是</el-radio>
               <el-radio label="false">否</el-radio>
             </el-radio-group>

+ 1 - 1
src/views/supply/engin/components/engin_form.vue

@@ -854,7 +854,7 @@ export default {
     // 删除产品
     deleteItem(index, id) {
       if (this.listItem && this.examineStatus === 'OK' && id) {
-        this.$errorMsg('不能删除')
+        this.$errorMsg('已审核通过的型号不能删除')
         return
       }
       this.goodsList.splice(index, 1)

+ 6 - 1
src/views/supply/policy/components/retail_form.vue

@@ -1381,6 +1381,7 @@ export default {
           this.mainForm.remark = data.remark
           this.mainForm.policyId = data.policyId
           this.mainForm.isPlanOrder = data.isPlanOrder
+          this.commercialType = data.commercialType
           this.policyId = data.policyId
           this.mainForm.k3ServiceName = data.k3ServiceName
           ;(this.mainForm.k3ServiceId = data.k3ServiceId), (this.mainForm.fileNum = data.fileNum)
@@ -1782,12 +1783,16 @@ export default {
             }
           })
           if (hasCustomerWalletId) return
+          if (this.commercialType && this.mainForm.isPlanOrder && !this.warehouseValue) {
+            this.$errorMsg(`仓库必选`)
+            return
+          }
           const params = {
             theTime: this.mainForm.date,
             k3ServiceId: this.mainForm.k3ServiceId,
             k3ServiceName: this.mainForm.k3ServiceName,
             isPlanOrder: this.mainForm.isPlanOrder,
-            commercialType: this.goodsList[0].commercialType,
+            commercialType: this.commercialType,
             remark: this.mainForm.remark,
             type: 2, // 1:普通零售单,2:政策零售单
             retailOrderItemList: this.goodsList,