|
@@ -166,9 +166,6 @@ $(document).ready(() => {
|
|
|
markExpandKey: 'revise-bills-expand',
|
|
|
markExpandSubKey: window.location.pathname.split('/')[2],
|
|
|
};
|
|
|
- if (!isTz) {
|
|
|
- treeSetting.calcFields.push('deal_tp');
|
|
|
- }
|
|
|
treeSetting.calcFun = function (node) {
|
|
|
node.dgn_price = ZhCalc.round(ZhCalc.div(node.total_price, node.dgn_qty1), 2);
|
|
|
};
|
|
@@ -542,7 +539,7 @@ $(document).ready(() => {
|
|
|
return;
|
|
|
}
|
|
|
// 台账模式,检查计量单元相关
|
|
|
- if (isTz) {
|
|
|
+ // if (isTz) {
|
|
|
if (col.field === 'sgfh_qty' || col.field === 'sgfh_tp' ||
|
|
|
col.field === 'sjcl_qty' || col.field === 'sjcl_tp' ||
|
|
|
col.field === 'qtcl_qty' || col.field === 'qtcl_tp') {
|
|
@@ -563,7 +560,7 @@ $(document).ready(() => {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ // }
|
|
|
if (col.field === 'node_type' && newValue && newValue !== '0' && newValue !== '19') {
|
|
|
const sameNodeType = sortData.find(x => { return x.node_type == newValue; });
|
|
|
if (sameNodeType) {
|
|
@@ -691,10 +688,10 @@ $(document).ready(() => {
|
|
|
if (colSetting.field === 'sgfh_qty' || colSetting.field === 'sgfh_tp' ||
|
|
|
colSetting.field === 'sjcl_qty' || colSetting.field === 'sjcl_tp' ||
|
|
|
colSetting.field === 'qtcl_qty' || colSetting.field === 'qtcl_tp') {
|
|
|
- if (isTz) {
|
|
|
+ // if (isTz) {
|
|
|
toastMessageUniq(hint.posQty);
|
|
|
continue;
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
if (value !== '' && invalidFields.posXmj.indexOf(colSetting.field) >= 0) {
|
|
|
toastMessageUniq(hint.posXmj);
|
|
@@ -2035,7 +2032,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
};
|
|
|
posSpread.bind(spreadNS.Events.SelectionChanged, posSpreadObj.selectionChanged);
|
|
|
- if (!readOnly && isTz) {
|
|
|
+ if (!readOnly) {
|
|
|
$('a[name="pos-opr"]').click(function () {
|
|
|
posSpreadObj.baseOpr(posSheet, this.getAttribute('type'));
|
|
|
});
|
|
@@ -2135,9 +2132,6 @@ $(document).ready(() => {
|
|
|
},
|
|
|
callback: function (key, opt) {
|
|
|
mergePeg.show();
|
|
|
- },
|
|
|
- visible: function (key, opt) {
|
|
|
- return isTz;
|
|
|
}
|
|
|
}
|
|
|
}
|