测试问题修改

master
zhangdi 10 months ago
parent 11e74bd5ec
commit 88f05e0141
  1. 4
      src/views/businessManagement/inspection/repair.vue
  2. 5
      src/views/goodsManagement/goodsList.vue

@ -598,7 +598,7 @@ export default {
materialData: [],
materialId: '',
productCurrent: 1,
productSize: 100,
productSize: 1000,
productTotals: 0,
productLists: [],
totalPrice: null,//
@ -654,7 +654,7 @@ export default {
const values = data.map(item => {
let price = null
if (item.detailGoodsList.length > 0) {
price = item.detailGoodsList.reduce((sum, items) => sum + items.price, 0)
price = item.detailGoodsList.reduce((sum, items) => Number(sum) + Number(items.price), 0)
return price
}
});

@ -484,7 +484,8 @@ export default {
tableData: [],
dialogReceive: false,
receiveForm: {
tableData: []
tableData: [],
remark:''
},
reciveRules: {
applyUser: { required: true, message: '请输入申领人', trigger: 'blur' },
@ -1035,6 +1036,7 @@ export default {
this.isShowTips = false
this.receiveForm = row
this.receiveForm.tableData = []
this.receiveForm.remark = ''
this.receiveForm.tableData.push({
id: row.id, //id
goodsName: row.name, //
@ -1161,7 +1163,6 @@ export default {
let data = []
console.log('this.receiveForm.tableData', this.receiveForm.tableData)
this.receiveForm.tableData.map(item => {
console.log(99898, item)
data.push({
productId: item.id, //id
productName: item.goodsName, //

Loading…
Cancel
Save