|
@@ -149,7 +149,7 @@
|
|
|
</ws-form-item>
|
|
|
<!-- 合同单价(元/吨) -->
|
|
|
<ws-form-item class="readonly" label="合同单价(元/吨)" span="1" prop="unitContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
|
|
|
- <ws-input @input="pricechange" v-model="deptBudgetList.unitContractPrice" placeholder="请输入合同单价"
|
|
|
+ <ws-input disabled @input="pricechange" v-model="deptBudgetList.unitContractPrice" placeholder="请输入合同单价"
|
|
|
maxlength="100" size="small" />
|
|
|
</ws-form-item>
|
|
|
<!-- 合同总价(元) -->
|
|
@@ -211,8 +211,12 @@
|
|
|
|
|
|
<!-- 临时仓库负责人 -->
|
|
|
<ws-form-item label="临时仓库负责人" span="1" prop="packingMethod" v-if="deptBudgetList.deliverType != 2">
|
|
|
- <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable @change="selectstaff">
|
|
|
+ <!-- <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable @change="selectstaff">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
|
|
|
+ </el-select> -->
|
|
|
+ <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.staffMobilePhone" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item class="readonly" label="结算重量方式" span="1" prop="settlementWeightMethod" v-if="deptBudgetList.deliverType==1">
|
|
@@ -323,7 +327,7 @@
|
|
|
delxiala,
|
|
|
examineList,
|
|
|
editInfo,
|
|
|
- getstafffind
|
|
|
+ getstaffall
|
|
|
} from '@/model/contarct/index'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
import {
|
|
@@ -405,8 +409,8 @@
|
|
|
},
|
|
|
|
|
|
activated() {
|
|
|
- getstafffind({
|
|
|
- roles: 'd6a5c8a52da544309259f91f75de1ec6'
|
|
|
+ getstaffall({
|
|
|
+ compId:this.compId
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -476,13 +480,19 @@
|
|
|
this.options = this.staffList
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
selectstaff(e) {
|
|
|
+ console.log(e)
|
|
|
+ this.deptBudgetList.personCharge=''
|
|
|
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)
|
|
|
},
|
|
|
handleChange(value) {
|
|
|
this.selectedOptions = value
|
|
@@ -497,6 +507,7 @@
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
+
|
|
|
if (response.weight) {
|
|
|
response.weight = String(response.weight)
|
|
|
}
|
|
@@ -509,6 +520,20 @@
|
|
|
if (response.unitContractPrice) {
|
|
|
response.unitContractPrice = String(response.unitContractPrice)
|
|
|
}
|
|
|
+ if(response.personCharge&&response.personCharge!=''){
|
|
|
+ var arr= response.personCharge.split(',')
|
|
|
+ var arr3=[]
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
+ if(arr[i]!=''){
|
|
|
+ var arr1=arr[i].split(' ')
|
|
|
+ if(arr1[1]!=''){
|
|
|
+ arr3.push(arr1[1])
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ response.personPhone=arr3
|
|
|
+ }
|
|
|
// var tmp = []
|
|
|
// tmp[0] = TextToCode[response.sourceProvince].code
|
|
|
|