zhongtianhaoyuan před 1 rokem
rodič
revize
3899d8d3ad
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      src/views/taskManagement/supplyofgoods.vue

+ 6 - 2
src/views/taskManagement/supplyofgoods.vue

@@ -20,7 +20,7 @@
         </el-date-picker>
         </el-date-picker>
           </div>
           </div>
           <div style='width:50%;margin-right:10px;display: flex;'>
           <div style='width:50%;margin-right:10px;display: flex;'>
-          <el-select v-model="goodsName" filterable placeholder="" @change="goodsNameChange" 
+          <el-select :disabled="status" v-model="goodsName" filterable placeholder="" @change="goodsNameChange" 
             style="margin: 0 10px">
             style="margin: 0 10px">
             <el-option key="全部货名" label="全部货名" value="0" style="color: #8890b1" />
             <el-option key="全部货名" label="全部货名" value="0" style="color: #8890b1" />
             <el-option v-for="(item,index) in goodsList" :key="item.id" :label="item.constValue"
             <el-option v-for="(item,index) in goodsList" :key="item.id" :label="item.constValue"
@@ -143,6 +143,7 @@
         primary: '1',
         primary: '1',
         startDate:'',
         startDate:'',
         endDate:'',
         endDate:'',
+        status:false,
         pickerOptions: {
         pickerOptions: {
           shortcuts: [{
           shortcuts: [{
               text: '本周',
               text: '本周',
@@ -233,7 +234,10 @@
           })
           })
       this.getNowTime()
       this.getNowTime()
       this.baseId=this.$route.query.baseId
       this.baseId=this.$route.query.baseId
-      
+      if(this.$route.query.status){
+        this.status=true
+        this.goodsName='玉米'
+      }
       this.showType = this.isShow
       this.showType = this.isShow
     },
     },
     methods: {
     methods: {