Kaynağa Gözat

【修改】 仓库认证打单

howie 2 yıl önce
ebeveyn
işleme
ffe9bb6a88
1 değiştirilmiş dosya ile 10 ekleme ve 7 silme
  1. 10 7
      src/views/supply/pickup/check.vue

+ 10 - 7
src/views/supply/pickup/check.vue

@@ -16,15 +16,15 @@
           <el-row :gutter="20">
             <el-col :xs="24" :sm="24" :lg="24">
               <el-form-item label="提货方式">
-                <el-radio-group v-model="radio" @change="handleReset">
-                  <el-radio :label="0">物流公司</el-radio>
+                <el-radio-group v-model="check" @change="handleReset">
                   <el-radio :label="1">商家自提</el-radio>
+                  <el-radio :label="0">物流公司</el-radio>
                 </el-radio-group>
               </el-form-item>
             </el-col>
           </el-row>
 
-          <template v-if="!radio">
+          <template v-if="!check">
             <el-row :gutter="20">
             <el-col :xs="24" :sm="8" :lg="6">
               <el-form-item label="物流公司" prop="logisticsId">
@@ -181,6 +181,8 @@
               >
             </el-col>
           </el-row>
+
+          </template>
           <el-row :gutter="20">
             <el-col :xs="24" :sm="24" :lg="24">
               <el-form-item prop="status" label-width="0">
@@ -199,7 +201,6 @@
               </el-form-item>
             </el-col>
           </el-row>
-          </template>
         </el-form>
       </div>
 
@@ -609,6 +610,7 @@ export default {
       userList: [],
       isShowDialog: false,
       radio: 0,
+      check:1,
       logisticsArr:[],
       pageNum:1,
       listTotal:0
@@ -638,7 +640,9 @@ export default {
   methods: {
     handleReset(){
       this.screenForm.customerId = ''
-      this.$refs.screenForm.resetFields()
+      this.screenForm.logisticsId =''
+      this.screenForm.warehouse = ''
+      this.screenForm.status = '0'
     },
     getDate() {
       var date = new Date();
@@ -751,8 +755,7 @@ export default {
 
     // 查询列表
     getList() {
-      console.log(this.screenForm.customerId);
-      if (this.radio==='1') {
+      if (this.check==='1') {
         if (!this.screenForm.manId) {
         return this.$errorMsg("请先查询提货人信息");
       }