Browse Source

币制

java8
han\hanst 3 months ago
parent
commit
3e08d44418
  1. 18
      src/views/modules/ecss/codelnotifyConfirm.vue
  2. 22
      src/views/modules/ecss/declaration.vue

18
src/views/modules/ecss/codelnotifyConfirm.vue

@ -2333,7 +2333,25 @@
}); });
return false; return false;
} }
if (this.palletModelData.grossWeight<=0||this.palletModelData.grossWeight==null) {
this.$alert('请输入毛重!', '错误', {
confirmButtonText: '确定'
});
return false;
}
if (this.palletModelData.netWeight<=0||this.palletModelData.netWeight==null) {
this.$alert('请输入净重!', '错误', {
confirmButtonText: '确定'
});
return false;
}
if (this.palletModelData.boxQty<=0||this.palletModelData.boxQty==null) {
this.$alert('请输入箱数!', '错误', {
confirmButtonText: '确定'
});
return false;
}
// (item.qty) // (item.qty)
const invalidRow = selectedRows.find(item => item.useQty > item.surplusQty); const invalidRow = selectedRows.find(item => item.useQty > item.surplusQty);
if (invalidRow) { if (invalidRow) {

22
src/views/modules/ecss/declaration.vue

@ -55,7 +55,7 @@
<el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button> <el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button>
</el-form-item>--> </el-form-item>-->
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px">{{'一键导出'}}</el-button>
<el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px" :loading="exportAllLoading">{{'一键导出'}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -849,6 +849,7 @@
}, },
data() { data() {
return { return {
bizhi:'',
exportAllFlag:false, exportAllFlag:false,
templateFlag:false, templateFlag:false,
templateData:{}, templateData:{},
@ -928,6 +929,7 @@
dataList:[], dataList:[],
dataList2:[], dataList2:[],
dataListLoading: false, dataListLoading: false,
exportAllLoading: false,
searchData: { searchData: {
page: 1, page: 1,
limit: 100, limit: 100,
@ -1885,7 +1887,7 @@
// //
if (data && data.code == 0) { if (data && data.code == 0) {
this.dataList2 = data.rows this.dataList2 = data.rows
this.bizhi = data.rows[0].currency
} else { } else {
this.dataList2 = []; this.dataList2 = [];
} }
@ -2059,7 +2061,7 @@
} }
this.exportGoods.hsCodeDescType = 'N' this.exportGoods.hsCodeDescType = 'N'
this.exportGoods.salesMethod = 'EXW' this.exportGoods.salesMethod = 'EXW'
this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD'
this.exportGoods.currency = this.dataList2.length>0?this.dataList2[0].currency:'USD'
this.exportGoods.madeArea = 'Nantong, China' this.exportGoods.madeArea = 'Nantong, China'
this.exportGoods.sendPort = 'Shanghai, China' this.exportGoods.sendPort = 'Shanghai, China'
this.exportGoods.deliveryGoodsDate = '' this.exportGoods.deliveryGoodsDate = ''
@ -2246,12 +2248,13 @@
this.$message.warning('请选择报关单!') this.$message.warning('请选择报关单!')
return return
} }
this.exportAllLoading = true
try {
// //
this.exportHeader.contractNo = this.currentRow.cmcInvoice || '' this.exportHeader.contractNo = this.currentRow.cmcInvoice || ''
this.exportHeader.transportMode = this.currentRow.shippingMode || '' this.exportHeader.transportMode = this.currentRow.shippingMode || ''
this.exportHeader.arrivalCountry = this.currentRow.receiveArea || '' this.exportHeader.arrivalCountry = this.currentRow.receiveArea || ''
this.exportHeader.tradeCountry = this.currentRow.salesArea || '' this.exportHeader.tradeCountry = this.currentRow.salesArea || ''
// / // /
try { try {
// //
@ -2281,7 +2284,6 @@
// //
this.brandType='境外品牌(其他)' this.brandType='境外品牌(其他)'
this.exportAllFlag = true
if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') { if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') {
this.currentRow.brand='品牌' this.currentRow.brand='品牌'
getPropertiesListByDeclaration(this.currentRow).then(({data}) => { getPropertiesListByDeclaration(this.currentRow).then(({data}) => {
@ -2393,14 +2395,18 @@
} }
}) })
this.exportGoods.salesMethod = 'EXW' this.exportGoods.salesMethod = 'EXW'
this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD'
this.exportGoods.currency = this.bizhi
this.exportGoods.madeArea = 'Nantong, China' this.exportGoods.madeArea = 'Nantong, China'
this.exportGoods.sendPort = 'Shanghai, China' this.exportGoods.sendPort = 'Shanghai, China'
this.exportGoods.deliveryGoodsDate = '' this.exportGoods.deliveryGoodsDate = ''
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:'' this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:''
this.exportGoods.shippingDate = ''; this.exportGoods.shippingDate = '';
this.templateData.type='出口货物委托书'
await this.searchTemplateOne();
//this.templateData.type=''
//await this.searchTemplateOne();
this.exportAllFlag = true
} finally {
this.exportAllLoading = false
}
}, },

Loading…
Cancel
Save