Browse Source

发料

master
ruanqi 2 years ago
parent
commit
41662ebf7e
  1. 10
      src/views/modules/base/partInformation.vue
  2. 3
      src/views/modules/material/com_issureSo_add_or_update.vue
  3. 29
      src/views/modules/material/com_poReceiving_add_or_update.vue
  4. 17
      src/views/modules/material/com_productionStock_add_or_update.vue

10
src/views/modules/base/partInformation.vue

@ -3547,10 +3547,10 @@
typeDesignation: '',
hazardCode: '',
hazardDesc: '',
assetClass: 'S',
assetClassDesc: '标准',
assetClass: '',
assetClassDesc: '',
dimQuality: '',
abcClass: 'C',
abcClass: '',
abcClassDesc: '',
frequencyClass: 'Very Slow Mover',
lifecycleStage: 'Development',
@ -3567,8 +3567,8 @@
intrastatConvFactor: '',
umDesc: '',
status: 'N',
partStatus: 'A',
partStatusDesc: '活动',
partStatus: '',
partStatusDesc: '',
configurationId: '*',
estimatedMaterialCost: 0,
inventoryValuationMethod: 'Standard Cost',

3
src/views/modules/material/com_issureSo_add_or_update.vue

@ -362,6 +362,7 @@
methods: {
// S
getBaseList (val, type) {
let conSql=''
this.tagNo = val
this.tagNo1 = type
this.$nextTick(() => {
@ -372,7 +373,7 @@
}
}
this.$refs.baseList.init(val, strVal)
this.$refs.baseList.init(val, strVal,conSql)
})
},
/* 列表方法的回调 */

29
src/views/modules/material/com_poReceiving_add_or_update.vue

@ -71,10 +71,12 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="库位">
<el-select v-model="dataForm.locationId" style="width: 100%;">
<el-option :value="i.locationId" :label="i.locationName" v-for="i in locationList" :key="i.locationId"></el-option>
</el-select>
<el-form-item >
<span slot="label" style="" @click="getBaseList(117,1)" ><a herf="#">库位</a></span>
<el-input v-model="dataForm.locationId" ></el-input>
<!-- <el-select v-model="dataForm.locationId" style="width: 100%;">-->
<!-- <el-option :value="i.locationId" :label="i.locationName" v-for="i in locationList" :key="i.locationId"></el-option>-->
<!-- </el-select>-->
</el-form-item>
</el-col>
<el-col :span="6">
@ -523,10 +525,20 @@
},
created () {
},
watch: {
dataForm: {
deep: true,
handler: function (newV, oldV) {
this.dataForm.wdrNo = this.dataForm.wdrNo.toUpperCase()
this.dataForm.batchNo = this.dataForm.batchNo.toUpperCase()
}
}
},
methods: {
// S
getBaseList (val, type) {
let sql=''
this.tagNo = val
this.tagNo1 = type
this.$nextTick(() => {
@ -536,8 +548,13 @@
strVal = this.dataForm.partNo
}
}
this.$refs.baseList.init(val, strVal)
if (val === 117) {
if(type==1) {
strVal = this.dataForm.partNo
sql= " and warehouse_id = '"+this.dataForm.warehouseID+"' "
}
}
this.$refs.baseList.init(val, strVal,sql)
})
},
/* 列表方法的回调 */

17
src/views/modules/material/com_productionStock_add_or_update.vue

@ -61,10 +61,9 @@
<el-row :gutter="25">
<el-col :span="6">
<el-form-item label="库位">
<el-select v-model="dataForm.locationId" style="width: 100%;">
<el-option :value="i.locationId" :label="i.locationName" v-for="i in locationList" :key="i.locationId"></el-option>
</el-select>
<el-form-item >
<span slot="label" style="" @click="getBaseList(117,1)" ><a herf="#">库位</a></span>
<el-input v-model="dataForm.locationId" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@ -371,6 +370,7 @@
methods: {
// S
getBaseList (val, type) {
let sql=''
this.tagNo = val
this.tagNo1 = type
this.$nextTick(() => {
@ -380,8 +380,13 @@
strVal = this.dataForm.partNo
}
}
this.$refs.baseList.init(val, strVal)
if (val === 117) {
if(type==1) {
strVal = this.dataForm.partNo
sql= " and warehouse_id = '"+this.dataForm.warehouseID+"' "
}
}
this.$refs.baseList.init(val, strVal,sql)
})
},
/* 列表方法的回调 */

Loading…
Cancel
Save