测试问题修改

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

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

Loading…
Cancel
Save