|
@@ -1489,24 +1489,29 @@
|
|
|
let _list = list
|
|
|
const waitForEach = function () {
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
- _list.forEach((item) => {
|
|
|
- // _this.inputForm.cwProjectInfoList.forEach(client => {
|
|
|
- // if (item.id === client.servedUnitId) {
|
|
|
- // // _this.$message.error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
|
|
|
- // // throw new Error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
|
|
|
- // }
|
|
|
- // })
|
|
|
- })
|
|
|
+ // _list.forEach((item) => {
|
|
|
+ // // _this.inputForm.cwProjectInfoList.forEach(client => {
|
|
|
+ // // if (item.id === client.servedUnitId) {
|
|
|
+ // // // _this.$message.error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
|
|
|
+ // // // throw new Error('已存在客户 “' + client.servedUnitName + '”,请重新选择')
|
|
|
+ // // }
|
|
|
+ // // })
|
|
|
+ // })
|
|
|
resolve()
|
|
|
})
|
|
|
}
|
|
|
+ console.log('list', list)
|
|
|
waitForEach().then(() => {
|
|
|
- list.forEach(item => {
|
|
|
- this.inputForm.servedUnitName = item.name
|
|
|
- this.inputForm.servedUnitId = item.id
|
|
|
- this.inputForm.sealType = '未盖章'
|
|
|
- this.tableKeyClient = Math.random()
|
|
|
- })
|
|
|
+ // list.forEach(item => {
|
|
|
+ // this.inputForm.servedUnitName = item.name
|
|
|
+ // this.inputForm.servedUnitId = item.id
|
|
|
+ // this.inputForm.sealType = '未盖章'
|
|
|
+ // this.tableKeyClient = Math.random()
|
|
|
+ // })
|
|
|
+ this.inputForm.servedUnitName = list.name
|
|
|
+ this.inputForm.servedUnitId = list.id
|
|
|
+ this.inputForm.sealType = '未盖章'
|
|
|
+ this.tableKeyClient = Math.random()
|
|
|
})
|
|
|
},
|
|
|
clearClientList () {
|