|
@@ -214,10 +214,10 @@ export default {
|
|
|
// 校验数据
|
|
|
const retList = JSON.parse(JSON.stringify(this.dataList))
|
|
|
console.log(retList)
|
|
|
- if (retList.length == 0) {
|
|
|
- this.$message.info('请添加产品信息')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (retList.length == 0) {
|
|
|
+ // this.$message.info('请添加产品信息')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
let hasError = 0
|
|
|
retList.map(item => {
|
|
|
if (!item.expense) {
|
|
@@ -238,7 +238,10 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.spinning = true
|
|
|
- expenseAcctDetailSaveProducts(retList).then(res => {
|
|
|
+ expenseAcctDetailSaveProducts({
|
|
|
+ 'expenseAccountDetailSn': this.expenseAccountDetailSn,
|
|
|
+ 'detailProductsList': retList
|
|
|
+ }).then(res => {
|
|
|
this.spinning = false
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success(res.message)
|