chenrui 2 gadi atpakaļ
vecāks
revīzija
bdb4baab72

+ 0 - 12
src/views/salesManagement/salesQuery/chooseCustomModal.vue

@@ -211,11 +211,6 @@ export default {
       type: [String, Number],
       type: [String, Number],
       default: '0'
       default: '0'
     }
     }
-    show: [Boolean],
-    selType: {
-      type: String,
-      default: '0'
-    }
   },
   },
   data () {
   data () {
     return {
     return {
@@ -577,13 +572,6 @@ export default {
     distributionFlag (newValue, oldValue) {
     distributionFlag (newValue, oldValue) {
       console.log(newValue, oldValue)
       console.log(newValue, oldValue)
       this.form.distributionFlag = newValue.toString()
       this.form.distributionFlag = newValue.toString()
-    },
-    selType (val) {
-      if (val == '1') {
-        this.form.distributionFlag = '1'
-      } else {
-        this.form.distributionFlag = '0'
-      }
     }
     }
   }
   }
 }
 }

+ 0 - 5
src/views/salesManagement/salesQuery/list.vue

@@ -122,8 +122,6 @@
       <div class="table-operator">
       <div class="table-operator">
         <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)">新增(零售)</a-button>
         <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)">新增(零售)</a-button>
         <a-button type="primary" class="button-warning" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)">新增(铺货)</a-button>
         <a-button type="primary" class="button-warning" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)">新增(铺货)</a-button>
-        <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd('0')">新增(零售)</a-button>
-        <a-button type="primary" class="button-warning" v-if="$hasPermissions('B_salesNews')" @click="handleAdd('1')">新增(铺货)</a-button>
       </div>
       </div>
       <!-- alert -->
       <!-- alert -->
       <a-alert type="info" style="margin-bottom:10px">
       <a-alert type="info" style="margin-bottom:10px">
@@ -227,7 +225,6 @@
     </a-spin>
     </a-spin>
     <!-- 选择客户弹框 -->
     <!-- 选择客户弹框 -->
     <choose-custom-modal :show="openModal" :distributionFlag="distributionFlag" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
     <choose-custom-modal :show="openModal" :distributionFlag="distributionFlag" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
-    <choose-custom-modal :show="openModal" :selType="selType" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
     <!-- 审核 -->
     <!-- 审核 -->
     <auditModal :openModal="visibleAudit" :spinning="spinningAudit" @close="visibleAudit=false" @ok="auditOrder('WAIT_OUT_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" />
     <auditModal :openModal="visibleAudit" :spinning="spinningAudit" @close="visibleAudit=false" @ok="auditOrder('WAIT_OUT_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" />
   </a-card>
   </a-card>
@@ -364,8 +361,6 @@ export default {
     },
     },
     // 新增
     // 新增
     handleAdd (flag) {
     handleAdd (flag) {
-    handleAdd (type) {
-      this.selType = type
       this.openModal = true
       this.openModal = true
       this.distributionFlag = flag
       this.distributionFlag = flag
     },
     },