Browse Source

2024-01-08

升级bu2
java8
fengyuan_yang 2 years ago
parent
commit
86fb422429
  1. 6
      src/views/modules/partspare/partspare-add-or-update.vue
  2. 6
      src/views/modules/qc/qcPartAttribute.vue

6
src/views/modules/partspare/partspare-add-or-update.vue

@ -55,7 +55,7 @@
<el-input v-model="dataForm.warehouseId"></el-input> <el-input v-model="dataForm.warehouseId"></el-input>
</el-form-item> </el-form-item>
<el-form-item required> <el-form-item required>
<el-link v-if="dataForm.warehouseId" slot="label" @click="getBaseList(112)">货位编码</el-link>
<el-link v-if="dataForm.warehouseId" slot="label" @click="getBaseList(506)">货位编码</el-link>
<span v-if="!dataForm.warehouseId" slot="label">货位编码</span> <span v-if="!dataForm.warehouseId" slot="label">货位编码</span>
<el-input v-model="dataForm.locationId"></el-input> <el-input v-model="dataForm.locationId"></el-input>
</el-form-item> </el-form-item>
@ -118,7 +118,7 @@ export default {
if (val === 502) { if (val === 502) {
strVal = this.dataForm.warehouseId strVal = this.dataForm.warehouseId
} }
if (val === 112) {
if (val === 506) {
strVal = this.dataForm.locationId strVal = this.dataForm.locationId
let whereValue = this.dataForm.warehouseId ? "'" + this.dataForm.warehouseId + "'" : "'*'" let whereValue = this.dataForm.warehouseId ? "'" + this.dataForm.warehouseId + "'" : "'*'"
conSql = ' and warehouse_id = ' + whereValue conSql = ' and warehouse_id = ' + whereValue
@ -135,7 +135,7 @@ export default {
if (this.tagNo === 502) { if (this.tagNo === 502) {
this.dataForm.warehouseId = val.warehouse_id this.dataForm.warehouseId = val.warehouse_id
} }
if (this.tagNo === 112) {
if (this.tagNo === 506) {
this.dataForm.locationId = val.location_id this.dataForm.locationId = val.location_id
} }
}, },

6
src/views/modules/qc/qcPartAttribute.vue

@ -112,7 +112,7 @@
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item prop="partNo" :rules="rules.partNoType"> <el-form-item prop="partNo" :rules="rules.partNoType">
<span v-if="modalDisableFlag === false" slot="label" @click="getBaseList(206)"><a herf="#">物料编码:</a></span>
<span v-if="modalDisableFlag === false" slot="label" @click="getBaseList(507)"><a herf="#">物料编码:</a></span>
<span v-if="modalDisableFlag === true" slot="label">物料编码:</span> <span v-if="modalDisableFlag === true" slot="label">物料编码:</span>
<el-input v-model="modalData.partNo" :disabled="modalDisableFlag" style="width: 120px"></el-input> <el-input v-model="modalData.partNo" :disabled="modalDisableFlag" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
@ -1240,7 +1240,7 @@
this.tagNo = val this.tagNo = val
this.$nextTick(() => { this.$nextTick(() => {
let strVal = '' let strVal = ''
if (val === 206) {
if (val === 507) {
strVal = this.modalData.partNo strVal = this.modalData.partNo
this.$refs.baseList.init(val, strVal) this.$refs.baseList.init(val, strVal)
} }
@ -1261,7 +1261,7 @@
// //
getBaseData (val) { getBaseData (val) {
if (this.tagNo === 206) {
if (this.tagNo === 507) {
this.modalData.partNo = val.part_no this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc this.modalData.partDesc = val.part_desc
} }

Loading…
Cancel
Save