|
@@ -2229,6 +2229,9 @@ function makePushBwmx(clinfo, listinfo, removeList, updateList, lidIsNumber) {
|
|
let needUpdate = false;
|
|
let needUpdate = false;
|
|
// 判断要不要更新名称,单位,原数量,单价
|
|
// 判断要不要更新名称,单位,原数量,单价
|
|
checkKey.forEach(function (key) {
|
|
checkKey.forEach(function (key) {
|
|
|
|
+ if ((key === 'name' || key === 'unit') && listinfo[key] === null) {
|
|
|
|
+ listinfo[key] = '';
|
|
|
|
+ }
|
|
if (listinfo[key] !== clinfo[key]) {
|
|
if (listinfo[key] !== clinfo[key]) {
|
|
oneUpdate[key] = listinfo[key];
|
|
oneUpdate[key] = listinfo[key];
|
|
clinfo[key] = listinfo[key];
|
|
clinfo[key] = listinfo[key];
|