@@ -185,7 +186,7 @@
label="操作">
- 箱明细
+ 箱明细
修改
删除
diff --git a/src/views/modules/ecss/createDeclaration.vue b/src/views/modules/ecss/createDeclaration.vue
index b9de3b7..dc394f5 100644
--- a/src/views/modules/ecss/createDeclaration.vue
+++ b/src/views/modules/ecss/createDeclaration.vue
@@ -354,6 +354,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
保存
关闭
@@ -373,6 +477,7 @@
searchEcssCoDelNotifyDetail,
searchCoDelPalletData,
getDeclarationDefaultData,
+ saveDeclaration,
}from "@/api/ecss/ecss.js"
import {getAllBuList}from '@/api/factory/site.js'
export default {
@@ -390,6 +495,7 @@
dataList:[],
dataList2:[],
dataList3:[],
+ detailList:[],
dataListLoading: false,
searchData: {
page: 1,
@@ -1480,11 +1586,15 @@
}
})
},
+ changeToalPrice(row){
+ row.totalPrice=row.unitPrice*row.qty
+ },
declarationModel(row){
getDeclarationDefaultData(row).then(({data}) => {
//区分请求成功和失败的状况
if (data && data.code === 0) {
this.declarationData=data.row
+ this.detailList=data.rows
this.declarationFlag=true
} else {
this.$alert(data.msg, '错误', {
@@ -1493,6 +1603,34 @@
}
});
},
+ saveDeclaration(){
+ if(this.detailList==null|| this.detailList.length<1){
+ this.$alert('不存在明细记录!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false
+ }
+ for (let i = 0; i {
+ //区分请求成功和失败的状况
+ if (data && data.code === 0) {
+ this.declarationFlag=false
+ this.searchTable()
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ });
+ },
//导出excel
async createExportData() {
this.searchData.limit = -1