zhongtianhaoyuan 1 rok pred
rodič
commit
3899d8d3ad

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

@@ -20,7 +20,7 @@
         </el-date-picker>
           </div>
           <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">
             <el-option key="全部货名" label="全部货名" value="0" style="color: #8890b1" />
             <el-option v-for="(item,index) in goodsList" :key="item.id" :label="item.constValue"
@@ -143,6 +143,7 @@
         primary: '1',
         startDate:'',
         endDate:'',
+        status:false,
         pickerOptions: {
           shortcuts: [{
               text: '本周',
@@ -233,7 +234,10 @@
           })
       this.getNowTime()
       this.baseId=this.$route.query.baseId
-      
+      if(this.$route.query.status){
+        this.status=true
+        this.goodsName='玉米'
+      }
       this.showType = this.isShow
     },
     methods: {