Prechádzať zdrojové kódy

feature:修复政策,其他零售参数未传问题

chenqilong 2 rokov pred
rodič
commit
241466f3f2

+ 10 - 13
src/views/supply/policy/components/retail_form.vue

@@ -75,7 +75,7 @@
         </el-col>
         <el-col :span="24" :sm="12" :lg="12">
           <el-form-item label="是否直调" prop="isAllDirect">
-            <el-checkbox v-model="mainForm.isAllDirect">{{ mainForm.isAllDirect?'是':'否' }}</el-checkbox>
+            <el-checkbox v-model="mainForm.isAllDirect">{{ mainForm.isAllDirect ? '是' : '否' }}</el-checkbox>
           </el-form-item>
         </el-col>
         <!--        <el-col :span="24" :sm="12" :lg="12" >-->
@@ -347,12 +347,9 @@
               <el-form-item label="规格型号">
                 <div style="display: flex">
                   <el-input v-model="screenForm.specification" placeholder="请输入规格型号" />
-                  <el-button
-                    style="margin-left: 10px"
-                    type="primary"
-                    size="mini"
-                    @click="handleGetPolicyList"
-                  >查询</el-button>
+                  <el-button style="margin-left: 10px" type="primary" size="mini" @click="handleGetPolicyList"
+                    >查询</el-button
+                  >
                 </div>
               </el-form-item>
             </el-col>
@@ -368,10 +365,9 @@
                 >
                   <el-option v-for="item in policyList" :key="item.code" :label="item.title" :value="item.code">
                     <span>{{ item.title }}</span>
-                    <span
-                      v-if="item.policyRemark"
-                      style="margin-left: 15px; color: #f00; font-size: 12px"
-                    >( {{ item.policyRemark }} )</span>
+                    <span v-if="item.policyRemark" style="margin-left: 15px; color: #f00; font-size: 12px"
+                      >( {{ item.policyRemark }} )</span
+                    >
                   </el-option>
                 </el-select>
               </el-form-item>
@@ -1273,7 +1269,7 @@ export default {
      * @param {String} index - 索引值
      * @return Boolean
      */
-    selectable: function(row, index) {
+    selectable: function (row, index) {
       // row.disabled == undefined 才能被选中
       if (row.disabled == undefined) {
         return true
@@ -1289,7 +1285,7 @@ export default {
      * @param {String} index - 索引值
      * @return Boolean
      */
-    selectable2: function(row, index) {
+    selectable2: function (row, index) {
       // row.disabled == undefined 才能被选中
       if (row.disabled == undefined) {
         return true
@@ -1903,6 +1899,7 @@ export default {
             return
           }
           const params = {
+            isAllDirect: this.mainForm.isAllDirect,
             theTime: this.mainForm.date,
             k3ServiceId: this.mainForm.k3ServiceId,
             k3ServiceName: this.mainForm.k3ServiceName,

+ 2 - 0
src/views/supply/retail/components/retail_form.vue

@@ -581,6 +581,7 @@ export default {
   data() {
     return {
       mainForm: {
+        isAllDirect:'',
         orderNum: '',
         date: '',
         // type: '',
@@ -1117,6 +1118,7 @@ export default {
             // theTime: this.mainForm.date + ' 00:00:00',
             // mainId: this.mainForm.type,
             // mainName,
+            isAllDirect:this.mainForm.isAllDirect,
             k3ServiceId: this.mainForm.salesMan,
             isPlanOrder: this.mainForm.isPlanOrder,
             correspondName: this.correspondName,