|
@@ -208,6 +208,9 @@
|
|
|
this.confirmLoading = false
|
|
|
if (res.success) {
|
|
|
that.manualData = res.result.records;
|
|
|
+ that.manualData.map(item=>{
|
|
|
+ item.selectStatus = '0'
|
|
|
+ })
|
|
|
that.pagination = {
|
|
|
total: res.result.total,
|
|
|
current: res.result.current,
|
|
@@ -242,7 +245,11 @@
|
|
|
},
|
|
|
//保存
|
|
|
addSave(){
|
|
|
- submitSalesOrder(this.manualData).then(res => {
|
|
|
+ var newObj =[]
|
|
|
+ this.manualData.map(item=>{
|
|
|
+ if(!item.selectStatus){newObj.push(item)}
|
|
|
+ })
|
|
|
+ submitSalesOrder(newObj).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('保存成功')
|
|
|
this.close()
|
|
@@ -278,6 +285,7 @@
|
|
|
if(item.irowNo == data.irowNo){
|
|
|
item.ccode = obj.ccode
|
|
|
item.ivouchRowNo = obj.ivouchRowNo
|
|
|
+ delete item.selectStatus
|
|
|
}
|
|
|
})
|
|
|
}
|