|
@@ -1868,7 +1868,7 @@ export default {
|
|
|
this.reportformsObj = data
|
|
|
},
|
|
|
// 生成应收应付
|
|
|
- copyfun(dc) {
|
|
|
+ async copyfun(dc) {
|
|
|
let selection = []
|
|
|
if (dc == 'D') {
|
|
|
selection = this.selectionDList
|
|
@@ -1883,8 +1883,24 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ let shortName = "";
|
|
|
+ if(dc==="C"){
|
|
|
+ let res = await getBcorpsDetail(this.assemblyForm.corpId)
|
|
|
+ if(res && res.data && res.data.data){
|
|
|
+ shortName = res.data.data.shortName
|
|
|
+ }
|
|
|
+ }
|
|
|
let arr = selection.map(item => {
|
|
|
let obj = {}
|
|
|
+ if(dc==="C"){
|
|
|
+ // 结算单位拿主表客户名称
|
|
|
+ obj.corpId = this.assemblyForm.corpId
|
|
|
+ obj.corpCnName = this.assemblyForm.corpCnName
|
|
|
+ obj.corpEnName = this.assemblyForm.corpEnName
|
|
|
+ obj.shortName = shortName
|
|
|
+ obj.dc = "D"
|
|
|
+ }
|
|
|
+
|
|
|
obj.feeId = item.feeId
|
|
|
obj.feeCnName = item.feeCnName
|
|
|
obj.feeEnName = item.feeEnName
|
|
@@ -2434,6 +2450,7 @@ export default {
|
|
|
},
|
|
|
// 客户的回调
|
|
|
async corpChange(value, name, row, dc) {
|
|
|
+ console.log("corpChange", "value", value, "name", name, "row", row, "dc", dc)
|
|
|
if (name == 'shortName') {
|
|
|
console.log(value, name)
|
|
|
if (!value) {
|
|
@@ -2872,6 +2889,7 @@ export default {
|
|
|
let boxarr40 = ['40HC', '40GP']
|
|
|
let boxarr20 = ['20GP']
|
|
|
let teunum = 0
|
|
|
+ console.log("getBunitsPagefun", res.data.data, "feeRow", feeRow)
|
|
|
for (let item of res.data.data) {
|
|
|
// 按箱型
|
|
|
if (item.quantityRule != 1) {
|
|
@@ -2899,6 +2917,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.unitNoData = [...arr, ...this.unitNoData]
|
|
|
+ console.log("getBunitsPagefun.unitNoData", this.unitNoData)
|
|
|
// 选择费用时带出第一条
|
|
|
if (type) {
|
|
|
let feeunitNodata = []
|