Browse Source

fixTtlAmount

master
han\hanst 2 weeks ago
parent
commit
b933a89592
  1. 2
      src/api/ecss/ecss.js
  2. 38
      src/views/modules/ecss/codelnotify.vue

2
src/api/ecss/ecss.js

@ -49,6 +49,8 @@ export const deleteHsCode= data => createAPI(`/ecss/coDel/deleteHsCode`,'post',d
export const searchCoDelPalletDataNew= data => createAPI(`/ecss/coDel/searchCoDelPalletDataNew`,'post',data)
export const fixTtlAmount= data => createAPI(`/ecss/coDel/fixTtlAmount`,'post',data)
export const selectBoxList = data => createAPI(`/ecss/coDel/selectBoxList`,'post',data)
export const saveCoDelPalletDataByExcel= data => createAPI(`/ecss/coDel/saveCoDelPalletDataByExcel`,'post',data)

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

@ -130,6 +130,7 @@
<el-tab-pane :label="currentRow.cmcInvoice+'明细'" name="detail">
<el-button v-show="currentRow.notifyStatus!=='订单取消'" @click="openCreateDetailModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'新增'}}</el-button>
<el-button v-show="currentRow.notifyStatus!=='订单取消'" @click="importDetailModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'改单导入'}}</el-button>
<el-button v-show="currentRow.notifyStatus!=='订单取消'" @click="fixTtlAmountHandle()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'TTL Amount修正'}}</el-button>
<el-table ref="detailTable"
:height="height"
:data="dataList2" :cell-style="cellStyleDetail"
@ -730,7 +731,8 @@
searchTemplateList,
getCustomers,
getCustomerAdd,
getNotifyPartDetail
getNotifyPartDetail,
fixTtlAmount
}from "@/api/ecss/ecss.js"
import {getBuList}from '@/api/factory/site.js'
import ExportUtil from "@/utils/export";
@ -1998,6 +2000,40 @@
this.$refs.delDetailUploadExcel.init(this.currentRow)
})
},
// TTL Amount
fixTtlAmountHandle(){
if (!this.currentRow || !this.currentRow.delNo) {
this.$message.warning('请先选择一个发货通知单')
return
}
this.$confirm('确认要将所有明细的价税合计(sumPrice)赋值到TTL Amount字段吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
fixTtlAmount(this.currentRow).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: 'TTL Amount修正成功',
type: 'success',
duration: 1500
})
//
this.refreshCurrentTabTable()
} else {
this.$alert(data.msg || 'TTL Amount修正失败', '错误', {
confirmButtonText: '确定'
})
}
}).catch((error) => {
this.$alert('TTL Amount修正失败: ' + error, '错误', {
confirmButtonText: '确定'
})
})
}).catch(() => {
//
})
},
refreshCurrentTabTable(){
if(this.currentRow===''||this.currentRow===null){
this.currentRow={site:'',delNo:''}

Loading…
Cancel
Save