Browse Source

另存为加修改

master
han\hanst 4 weeks ago
parent
commit
b6503b58b7
  1. 7
      src/views/modules/ecss/codelnotify.vue
  2. 1
      src/views/modules/ecss/del_upload_excel.vue

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

@ -835,7 +835,8 @@
</el-row> </el-row>
</el-form> </el-form>
<el-footer style="height:40px; margin-top: 10px; text-align:center"> <el-footer style="height:40px; margin-top: 10px; text-align:center">
<el-button type="primary" @click="updateCustomerInfo()">保存</el-button>
<el-button type="primary" @click="updateCustomerInfo('')">仅保存客户信息</el-button>
<el-button type="primary" @click="updateCustomerInfo(customerInfoModel.templateNo)">保存并修改模版</el-button>
<el-button @click="customerInfoDialogFlag = false">关闭</el-button> <el-button @click="customerInfoDialogFlag = false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -3018,6 +3019,7 @@
overseasAddress: this.currentRow.overseasAddress || '', overseasAddress: this.currentRow.overseasAddress || '',
salesArea: this.currentRow.salesArea || '', salesArea: this.currentRow.salesArea || '',
cnative: this.currentRow.cnative || '', cnative: this.currentRow.cnative || '',
templateNo: this.currentRow.templateNo || '',
templateName: '' templateName: ''
} }
@ -3027,7 +3029,7 @@
/** /**
* 更新客户信息 * 更新客户信息
*/ */
updateCustomerInfo() {
updateCustomerInfo(templateNo) {
// //
if (!this.customerInfoModel.customerName) { if (!this.customerInfoModel.customerName) {
this.$message.warning('请填写客户名称') this.$message.warning('请填写客户名称')
@ -3038,6 +3040,7 @@
const updateData = { const updateData = {
site: this.currentRow.site, site: this.currentRow.site,
delNo: this.currentRow.delNo, delNo: this.currentRow.delNo,
templateNo : templateNo,
customerName: this.customerInfoModel.customerName, customerName: this.customerInfoModel.customerName,
localShipAddress: this.customerInfoModel.localShipAddress, localShipAddress: this.customerInfoModel.localShipAddress,
overseasShipper: this.customerInfoModel.overseasShipper, overseasShipper: this.customerInfoModel.overseasShipper,

1
src/views/modules/ecss/del_upload_excel.vue

@ -1261,6 +1261,7 @@
formData.append("deletedInvoices", JSON.stringify(allDeletedInvoices)) formData.append("deletedInvoices", JSON.stringify(allDeletedInvoices))
// //
this.validInvoices.forEach((item, index) => { this.validInvoices.forEach((item, index) => {
formData.append(`templateNo_${item.cmcInvoice}`, item.templateNo)
formData.append(`customerName_${item.cmcInvoice}`, item.selectedCustomer) formData.append(`customerName_${item.cmcInvoice}`, item.selectedCustomer)
formData.append(`localShipAddress_${item.cmcInvoice}`, item.selectedLocalAddress) formData.append(`localShipAddress_${item.cmcInvoice}`, item.selectedLocalAddress)
formData.append(`overseasShipper_${item.cmcInvoice}`, item.selectedOverseasShipper) formData.append(`overseasShipper_${item.cmcInvoice}`, item.selectedOverseasShipper)

Loading…
Cancel
Save