常熟吴彦祖 3 weeks ago
parent
commit
afee00c733
  1. 16
      src/views/modules/srmSupplier/supplierList.vue

16
src/views/modules/srmSupplier/supplierList.vue

@ -208,13 +208,13 @@
<!-- </el-col>-->
<el-col :span="6">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(2016, 'buyer')"><a href="#">采购员</a></span>
<span style="cursor: pointer" slot="label" @click="getBaseList(529, 'buyer')"><a href="#">采购员</a></span>
<el-input v-model="currentSupplier.buyer" style="width: 130px"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(2016, 'sourcingStaff')"><a href="#">Sourcing专员</a></span>
<span style="cursor: pointer" slot="label" @click="getBaseList(528, 'sourcingStaff')"><a href="#">Sourcing专员</a></span>
<el-input v-model="currentSupplier.sourcingStaff" style="width: 130px"></el-input>
</el-form-item>
</el-col>
@ -1255,12 +1255,12 @@ export default {
if (val === 524){
strVal = this.currentSupplier.deliveryTerm
}
if (val === 2016 && type === 'buyer'){
if (val === 529 && type === 'buyer'){
strVal = this.currentSupplier.buyer || ''
// Druid where 1=1
conSql = " and username <> '' "
}
if (val === 2016 && type === 'sourcingStaff'){
if (val === 528 && type === 'sourcingStaff'){
strVal = this.currentSupplier.sourcingStaff || ''
// Druid where 1=1
conSql = " and username <> '' "
@ -1301,12 +1301,12 @@ export default {
this.currentSupplier.deliveryTerm = deliveryTermVal
console.log('交货条款赋值:', deliveryTermVal)
}
if (this.tagNo === 2016 && this.currentFieldType === 'buyer') {
this.currentSupplier.buyer = val.username || val.user_display || val.name
if (this.tagNo === 529 && this.currentFieldType === 'buyer') {
this.currentSupplier.buyer = val.UserName
console.log('采购员赋值:', this.currentSupplier.buyer)
}
if (this.tagNo === 2016 && this.currentFieldType === 'sourcingStaff') {
this.currentSupplier.sourcingStaff = val.username || val.user_display || val.name
if (this.tagNo === 528 && this.currentFieldType === 'sourcingStaff') {
this.currentSupplier.sourcingStaff = val.UserName
console.log('Sourcing专员赋值:', this.currentSupplier.sourcingStaff)
}
},

Loading…
Cancel
Save