@@ -454,7 +454,7 @@ $(document).ready(() => {
// 上传到数据库
- console.log(datas, gcl);
+ console.log(datas, gcl, mb_id);
postData(window.location.pathname + '/save', {type: 'adds', postData: {xmjs: datas, mbIds: mb_id}}, function (result) {
materialListData = result;
// toastr.success('已成功应用');
@@ -366,7 +366,7 @@ module.exports = app => {
};
list.push(newLists);
}
- if (this._.findIndex(listGcl, {gcl_id: xmj.gcl_id}) === -1) {
+ if (this._.findIndex(listGcl, { gcl_id: xmj.gcl_id, mb_id: mb }) === -1) {
const newListGcl = {
tid: this.ctx.tender.id,
order: this.ctx.material.order,
@@ -548,8 +548,8 @@ module.exports = app => {
listGcl.push(xmj.gcl_id);
updateListGcl.push({
row: {
- expr: datas.expr,
- quantity: datas.quantity,
+ expr: data.expr,
+ quantity: data.quantity,
},
where: {