|
@@ -14812,7 +14812,10 @@ import { SS as storage } from "storage"; // import { SS } from "storage"; */
|
|
|
rsp = _context2.sent;
|
|
|
|
|
|
// 明细数据匹配表头
|
|
|
- headers = mjs.$this.$("tableField_liv5f4d2").props.children.props.children.map(function (_ref2) {
|
|
|
+ const children = mjs.$this.$("tableField_liv5f4d2").props.children;
|
|
|
+ // 确保 children 是一个数组
|
|
|
+ const childrenArray = Array.isArray(children) ? children : [children];
|
|
|
+ headers = childrenArray[0].props.children.map(function (_ref2) {
|
|
|
var _ref2$props = _ref2.props,
|
|
|
label = _ref2$props.label,
|
|
|
fieldId = _ref2$props.fieldId;
|
|
@@ -14846,14 +14849,20 @@ import { SS as storage } from "storage"; // import { SS } from "storage"; */
|
|
|
exTax += item.excludingTax;
|
|
|
// 发票数据标题: 销售方 + 发票类型 + 价税合计
|
|
|
rowData.textField_ljmgqvbz = item.sellerName + "-" + item.kindName + "-" + item.amount;
|
|
|
+ rowData.textField_m7ohbyd0 = file.uid;
|
|
|
return rowData;
|
|
|
});
|
|
|
|
|
|
mjs.$this.$('numberField_ln05ra1i').setValue(amount);
|
|
|
mjs.$this.$('numberField_ln05ra1n').setValue(exTax);
|
|
|
mjs.$this.$('numberField_ln05ra1o').setValue(tax);
|
|
|
- mjs.$this.$('tableField_liv5f4d2').setValue(invoices);
|
|
|
- return _context2.abrupt("return", invoices);
|
|
|
+ var tableData = mjs.$this.$('tableField_liv5f4d2').getValue();
|
|
|
+ if(tableData.length == 1 && !tableData[0].selectField_liihyrta){
|
|
|
+ tableData=[];
|
|
|
+ }
|
|
|
+ tableData.push(...invoices)
|
|
|
+ mjs.$this.$('tableField_liv5f4d2').setValue(tableData);
|
|
|
+ return _context2.abrupt("return", tableData);
|
|
|
|
|
|
case 12:
|
|
|
case "end":
|