|
@@ -257,9 +257,9 @@
|
|
|
<el-radio v-model="deptBudgetList.settlementWeightMethod" label="2">按入库重量结算</el-radio>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
|
|
|
- <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable
|
|
|
+ <el-select v-model="deptBudgetList.personPhone" multiple placeholder="请选择临时仓库负责人" filterable clearable
|
|
|
@change="selectstaff">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffMobilePhone" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
@@ -498,6 +498,9 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
agreementType: '采购合同',
|
|
|
addressUrl: '',
|
|
|
sellerPhone:'',
|
|
|
+ personPhone:'',
|
|
|
+ personCharge:'',
|
|
|
+ personChargeKey:'',
|
|
|
finalTradingVolume: 0,
|
|
|
totalContractPrice: 0,
|
|
|
contractGoodsInfo: {
|
|
@@ -688,12 +691,32 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
}
|
|
|
},
|
|
|
selectstaff(e) {
|
|
|
+ // this.deptBudgetList.personPhone=''
|
|
|
+ // this.deptBudgetList.personChargeKey=''
|
|
|
+ // for (var i = 0; i < this.staffList.length; i++) {
|
|
|
+ // if (e.indexOf(this.staffList[i].staffName)!=-1) {
|
|
|
+ // if(this.deptBudgetList.personPhone){
|
|
|
+ // this.deptBudgetList.personPhone= this.deptBudgetList.personPhone+','+ this.staffList[i].staffMobilePhone
|
|
|
+ // }else{
|
|
|
+ // this.deptBudgetList.personPhone=this.staffList[i].staffMobilePhone
|
|
|
+ // }
|
|
|
+ // if(this.deptBudgetList.personChargeKey){
|
|
|
+ // this.deptBudgetList.personChargeKey= this.deptBudgetList.personChargeKey+','+ this.staffList[i].staffId
|
|
|
+ // }else{
|
|
|
+ // this.deptBudgetList.personChargeKey= this.staffList[i].staffId
|
|
|
+ // }
|
|
|
+
|
|
|
+ // }
|
|
|
+ // }
|
|
|
for (var i = 0; i < this.staffList.length; i++) {
|
|
|
- if (this.staffList[i].staffName == e) {
|
|
|
- this.deptBudgetList.personPhone = this.staffList[i].staffMobilePhone
|
|
|
- this.deptBudgetList.personChargeKey = this.staffList[i].staffId
|
|
|
+ for (var j = 0; j < e.length; j++) {
|
|
|
+ if (this.staffList[i].staffMobilePhone == e[j]) {
|
|
|
+ this.deptBudgetList.personCharge += this.staffList[i].staffName + ' ' + this.staffList[i]
|
|
|
+ .staffMobilePhone + ','
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ console.log(this.deptBudgetList)
|
|
|
},
|
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
handleClose() {
|
|
@@ -719,6 +742,9 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
agreementType: '采购合同',
|
|
|
addressUrl: '',
|
|
|
sellerPhone:'',
|
|
|
+ personPhone:'',
|
|
|
+ personCharge:'',
|
|
|
+ personChargeKey:'',
|
|
|
finalTradingVolume: 0,
|
|
|
totalContractPrice: 0,
|
|
|
contractGoodsInfo: {
|
|
@@ -1405,6 +1431,9 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
}
|
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ if(this.deptBudgetList.personPhone){
|
|
|
+ this.deptBudgetList.personPhone=this.deptBudgetList.personPhone.toString()
|
|
|
+ }
|
|
|
this.deptBudgetList.compId = this.compId
|
|
|
this.deptBudgetList.contractType = 2
|
|
|
this.deptBudgetList.goodsType = 1
|
|
@@ -1489,14 +1518,21 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
this.$message.success('添加成功')
|
|
|
this.deptBudgetList = {
|
|
|
deliverType: '1',
|
|
|
+ sourceGoods:'',
|
|
|
+ placeDelivery:'',
|
|
|
agreementType: '采购合同',
|
|
|
+ addressUrl: '',
|
|
|
+ sellerPhone:'',
|
|
|
+ personPhone:'',
|
|
|
+ personCharge:'',
|
|
|
+ personChargeKey:'',
|
|
|
finalTradingVolume: 0,
|
|
|
totalContractPrice: 0,
|
|
|
contractGoodsInfo: {
|
|
|
goodsName: '',
|
|
|
},
|
|
|
contractProcessInfo: {},
|
|
|
- addressUrl: '',
|
|
|
+ settlementWeightMethod: '1',
|
|
|
}
|
|
|
this.$router.push({
|
|
|
path: 'buyContract'
|