diff --git a/js/accessory/accessory_store_list.js b/js/accessory/accessory_store_list.js index cd3ac4d..632f8b5 100644 --- a/js/accessory/accessory_store_list.js +++ b/js/accessory/accessory_store_list.js @@ -114,6 +114,9 @@ function initTable() { title: "成本价格(元)", unresize: true, align: "center", + templet: function (d) { + return '¥ ' + d.allPrice; + }, }, { field: "inputDay", diff --git a/js/accessory/child/accessory_return_form.js b/js/accessory/child/accessory_return_form.js index 4e15832..00a60a2 100644 --- a/js/accessory/child/accessory_return_form.js +++ b/js/accessory/child/accessory_return_form.js @@ -338,7 +338,7 @@ function setTableData(results) { function setFormInput(value, type) { let html = '
'; if (type === 1) { // 本次退回量 - html += ''; + html += ''; } else if (type === 2) { // 备注 html += ''; } diff --git a/js/accessory/child/accessory_store_edit_form.js b/js/accessory/child/accessory_store_edit_form.js index e3b38aa..731de18 100644 --- a/js/accessory/child/accessory_store_edit_form.js +++ b/js/accessory/child/accessory_store_edit_form.js @@ -178,9 +178,10 @@ function submitApply(data) { if (length === 0) { return layer.msg('请上传附件证明', { icon: 7 }); } - // 校验配件入库数量 - if (list.length === 0) { - return layer.msg('未填写配件入库数量', { icon: 7 }); + for (let i = 0; i < list.length; i++) { + if (list[i].partPrice === 0 || list[i].partPrice === '0') { + return layer.msg('入库配件明细,第' + (i + 1) + '行,未填写单价', { icon: 7 }); + } } data.field.details = list; data.field.id = objParam.id; @@ -324,9 +325,9 @@ function setTableData(results) { function setFormInput(value, type) { let html = '
'; if (type === 1) { // 入库量 - html += ''; + html += ''; } else if (type === 2) { // 单价 - html += ''; + html += ''; } else if (type === 3) { // 厂家 html += ''; + html += ''; } else if (type === 2) { // 单价 - html += ''; + html += ''; } else if (type === 3) { // 厂家 html += ''; + html += ''; } else if (type === 2) { // 需用天数 - html += ''; + html += ''; } else if (type === 3) { // 备注 html += ''; }