Browse Source

发票毛重净重列

java8
han\hanst 3 months ago
parent
commit
7165f215a2
  1. 13
      src/views/modules/ecss/codelnotify.vue
  2. 71
      src/views/modules/ecss/codelnotifyConfirm.vue
  3. 12
      src/views/modules/ecss/declaration.vue
  4. 10
      src/views/modules/ecss/ecssTemplate.vue

13
src/views/modules/ecss/codelnotify.vue

@ -509,9 +509,9 @@
<el-radio v-model="exportInvoice.hsCodeDescType" label="N">英文</el-radio>
</el-form-item>
</el-col>
<el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
<el-form-item :label="'制造地'" >
<el-input v-model="exportInvoice.origin"></el-input>
<el-col :span="12">
<el-form-item :label="' '" >
<el-checkbox v-model="exportInvoice.showWeight">显示毛净重</el-checkbox>
</el-form-item>
</el-col>
<el-col :span="12">
@ -534,6 +534,11 @@
<el-input :disabled="!exportInvoice.packaging" v-model="exportInvoice.kgs"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
<el-form-item :label="'制造地'" >
<el-input v-model="exportInvoice.origin"></el-input>
</el-form-item>
</el-col>
<el-col :span="24" style="">
<el-form-item :label="'备注'" >
<el-input type="textarea" :rows="3" v-model="exportInvoice.fpremark"></el-input>
@ -1700,6 +1705,7 @@
overseasShipper:'',
overseasAddress:'',
fpremark:'',
showWeight:false
},
exportGoodsFlag:false,
exportGoods:{
@ -2600,6 +2606,7 @@
this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType
this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
this.exportInvoice.fpremark=row.remark
this.exportInvoice.showWeight = row.showWeight
} else if (this.templateData.type=='出口货物委托书'){
this.exportGoods.salesMethod = row.salesMethod
this.exportGoods.currency = row.currency

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

@ -2023,7 +2023,7 @@
if (column.property === 'qty' && row.modifyQtyFlag===true) {
return { color: '#ff5d03' };
}
// PN modifyFlag
if (column.property === 'pn' && row.modifyFlag===true) {
return { color: '#ff5d03' };
@ -2375,7 +2375,7 @@
// rolls /
const rolls = row.useQty / rollQty;
this.$set(row, 'rolls', parseFloat(rolls.toFixed(4)));
//
this.calculateTotalBoxQtyAndWeights();
} else {
@ -2399,7 +2399,7 @@
calculateTotalBoxQtyAndWeights() {
//
const selectedRows = this.dataList8.filter(item => item.useQty && item.useQty > 0);
if (selectedRows.length === 0) {
//
this.palletModelData.boxQty = null;
@ -2409,10 +2409,10 @@
}
//
const allHaveCache = selectedRows.every(row =>
const allHaveCache = selectedRows.every(row =>
row.rollQtyCache && row.boxRollsCache && row.boxWeightCache
);
if (!allHaveCache) {
//
return;
@ -2429,7 +2429,7 @@
const partBoxQty = Math.ceil(row.useQty / eaPerBox);
// = ×
const partGrossWeight = partBoxQty * row.boxWeightCache;
totalBoxQty += partBoxQty;
totalGrossWeight += partGrossWeight;
});
@ -2458,7 +2458,7 @@
//
const selectedRows = this.dataList8.filter(item => item.useQty && item.useQty > 0);
if (selectedRows.length === 0) {
//
return;
@ -2466,7 +2466,7 @@
//
const needFetchProperties = selectedRows.filter(row => !row.boxWeightCache);
if (needFetchProperties.length === 0) {
//
this.calculateWeightsWithCache(selectedRows);
@ -2482,7 +2482,7 @@
//
let totalWeight = 0;
let totalQty = 0;
selectedRows.forEach(row => {
if (row.boxWeightCache && row.boxWeightCache > 0 && row.rollQtyCache && row.rollQtyCache > 0 && row.boxRollsCache && row.boxRollsCache > 0) {
// EA = ×
@ -2544,13 +2544,13 @@
*/
calculateFinalWeights(avgBoxWeight) {
const boxQty = parseFloat(this.palletModelData.boxQty);
// = ×
const grossWeight = boxQty * avgBoxWeight;
// = - ( / 2)
const netWeight = grossWeight - (boxQty / 2);
// 2
this.palletModelData.grossWeight = parseFloat(grossWeight.toFixed(2));
this.palletModelData.netWeight = parseFloat(netWeight.toFixed(2));
@ -2633,10 +2633,22 @@
},
updateCodelPalletHeaderPalletQty(row){
// loading
const loading = this.$loading({
lock: true,
text: '保存中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
});
updateCodelPalletHeaderPalletQty(this.palletModelData).then(({data}) => {
loading.close();
if (data && data.code === 0) {
this.palletEditFlag = false
// tab
this.refreshCurrentTabTable()
//
this.searchTable()
this.$message({
message: '操作成功',
type: 'success',
@ -2648,14 +2660,28 @@
confirmButtonText: '确定'
})
}
}).catch(error => {
loading.close();
this.$message.error('保存失败: ' + (error.message || '未知错误'))
})
},
deletePallet(row){
this.$confirm('确认删除此明细?', '提示').then(() => {
// loading
const loading = this.$loading({
lock: true,
text: '删除中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
});
deletePalletHeader(row).then(({data}) => {
loading.close();
if (data && data.code === 0) {
this.refreshCurrentTabTable()
//
this.searchTable()
this.$message({
message: '操作成功',
type: 'success',
@ -2667,6 +2693,9 @@
confirmButtonText: '确定'
})
}
}).catch(error => {
loading.close();
this.$message.error('删除失败: ' + (error.message || '未知错误'))
})
})
},
@ -2757,10 +2786,23 @@
delNo: this.currentRow.delNo,
boxRemnant: this.oneClickPackingModelData.boxRemnant,
}
// loading
const loading = this.$loading({
lock: true,
text: '一键装箱计算中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
});
saveOneClickPacking(saveData).then(({data}) => {
loading.close();
if (data && data.code === 0) {
this.refreshCurrentTabTable()
this.oneClickPackingModelFlag=false;
// tab
this.refreshCurrentTabTable()
//
this.searchTable()
this.$message({
message: '操作成功',
type: 'success',
@ -2772,6 +2814,9 @@
confirmButtonText: '确定'
})
}
}).catch(error => {
loading.close();
this.$message.error('一键装箱失败: ' + (error.message || '未知错误'))
})
},

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

@ -539,9 +539,9 @@
<el-radio v-model="exportInvoice.hsCodeDescType" label="N">英文</el-radio>
</el-form-item>
</el-col>
<el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
<el-form-item :label="'制造地'" >
<el-input v-model="exportInvoice.origin"></el-input>
<el-col :span="12">
<el-form-item :label="' '" >
<el-checkbox v-model="exportInvoice.showWeight">显示毛净重</el-checkbox>
</el-form-item>
</el-col>
<el-col :span="12">
@ -564,6 +564,11 @@
<el-input :disabled="!exportInvoice.packaging" v-model="exportInvoice.kgs"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'">
<el-form-item :label="'制造地'" >
<el-input v-model="exportInvoice.origin"></el-input>
</el-form-item>
</el-col>
<el-col :span="24" style="">
<el-form-item :label="'备注'" >
<el-input type="textarea" :rows="3" v-model="exportInvoice.fpremark"></el-input>
@ -2606,6 +2611,7 @@
this.exportInvoice.hsCodeFlag=row.hsCodeFlag
this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel
this.exportInvoice.fpremark = row.remark
this.exportInvoice.showWeight = row.showWeight
} else if (this.templateData.type=='箱单'){
this.exportPaking.templateName=row.name
this.exportPaking.upc=row.upc

10
src/views/modules/ecss/ecssTemplate.vue

@ -220,6 +220,11 @@
<el-input v-model="addModel.origin"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-show="addModel.type=='发票'">
<el-form-item :label="' '" >
<el-checkbox v-model="addModel.showWeight">显示毛净重</el-checkbox>
</el-form-item>
</el-col>
<el-col :span="12" v-show="addModel.type=='出口货物委托书'">
<el-form-item :label="'贸易方式'" >
<el-input v-model="addModel.salesMethod"></el-input>
@ -406,6 +411,7 @@
remark:'',
boxChange:'',
salesMethod :'EXW',
showWeight:false,
currency:'USD',
madeArea:'Shanghai, China',
sendPort:'Shanghai, China',
@ -731,7 +737,8 @@
shipper:'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' +
'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area, Shanghai\t\t\t\t\t\t\n' +
'电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' +
'上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n'
'上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n',
showWeight:false
}
this.addModelFlag=true
@ -774,6 +781,7 @@
shippingDate:row.shippingDate,
shipper:row.shipper,
highPalletFlag:row.highPalletFlag,
showWeight:row.showWeight,
}
this.addModelFlag=true
},

Loading…
Cancel
Save