Browse Source

发货通知单导入时,新增客户维护项等

支持导入改单等
java8
han\hanst 7 months ago
parent
commit
9045f96001
  1. 10
      src/views/modules/ecss/codelnotify.vue
  2. 2
      src/views/modules/ecss/codelnotifyConfirm.vue
  3. 12
      src/views/modules/ecss/createDeclaration.vue
  4. 7
      src/views/modules/ecss/del_detail_upload_excel.vue
  5. 5
      src/views/modules/ecss/del_upload_excel.vue
  6. 2
      src/views/modules/ecss/ecssWalMartOrder.vue

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

@ -1,8 +1,8 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form :inline="true" label-position="top" label-width="60px" style="margin-top: 0px;">
<el-form-item :label="'BU:'"> <el-form-item :label="'BU:'">
<el-select v-model="searchData.buNo" placeholder="请选择" >
<el-select v-model="searchData.buNo" placeholder="请选择" style="width: 80px">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option <el-option
v-for = "i in buList" v-for = "i in buList"
@ -71,7 +71,7 @@
class="el-button el-button&#45;&#45;primary el-button&#45;&#45;medium"> class="el-button el-button&#45;&#45;primary el-button&#45;&#45;medium">
{{ '导出' }} {{ '导出' }}
</download-excel>--> </download-excel>-->
</el-form-item>
</el-form-item><br>
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="exportInvoiceList()" type="primary" style="margin-left: 2px">{{'导出发票'}}</el-button> <el-button @click="exportInvoiceList()" type="primary" style="margin-left: 2px">{{'导出发票'}}</el-button>
</el-form-item> </el-form-item>
@ -132,7 +132,7 @@
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" > <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" >
<el-tab-pane label="明细" name="detail"> <el-tab-pane label="明细" 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="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="importDetailModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'改单导入'}}</el-button>
<el-table ref="detailTable" <el-table ref="detailTable"
:height="height" :height="height"
:data="dataList2" :cell-style="cellStyleDetail" :data="dataList2" :cell-style="cellStyleDetail"
@ -1601,7 +1601,7 @@
serialNumber: '801001Table3PN', serialNumber: '801001Table3PN',
tableId: "801001Table3", tableId: "801001Table3",
tableName: "装箱明细", tableName: "装箱明细",
columnProp: "partNo",
columnProp: "pn",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "PN", columnLabel: "PN",

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

@ -70,7 +70,7 @@
fixed="left" fixed="left"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认'" @click="updateModelOpen(scope.row)">修改</a>
<a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认' || scope.row.notifyStatus==='已报关'" @click="updateModelOpen(scope.row)">修改</a>
<a type="text" size="small" v-if="scope.row.notifyStatus==='已下达'" @click="confirmModelOpen(scope.row)">仓库确认</a> <a type="text" size="small" v-if="scope.row.notifyStatus==='已下达'" @click="confirmModelOpen(scope.row)">仓库确认</a>
<a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认'" @click="cancerConfirm(scope.row)">取消确认</a> <a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认'" @click="cancerConfirm(scope.row)">取消确认</a>
</template> </template>

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

@ -1632,19 +1632,19 @@
if (data && data.code === 0) { if (data && data.code === 0) {
this.declarationData=data.row this.declarationData=data.row
this.detailList=data.rows this.detailList=data.rows
this.customerData=data.customers
/* this.customerData=data.customers
this.customerAddData = data.customerAdd this.customerAddData = data.customerAdd
if (data.customerAdd && data.customerAdd.length > 0 && data.customers && data.customers.length > 0) { if (data.customerAdd && data.customerAdd.length > 0 && data.customers && data.customers.length > 0) {
this.declarationData.overseasAddress = this.declarationData.overseasAddress?this.declarationData.overseasAddress:data.customerAdd[0].cDeliverAdd this.declarationData.overseasAddress = this.declarationData.overseasAddress?this.declarationData.overseasAddress:data.customerAdd[0].cDeliverAdd
this.declarationData.overseasShipper = this.declarationData.overseasShipper?this.declarationData.overseasShipper:data.customers[0].ccontactname this.declarationData.overseasShipper = this.declarationData.overseasShipper?this.declarationData.overseasShipper:data.customers[0].ccontactname
}
} */
this.declarationFlag=true this.declarationFlag=true
this.customerData.forEach(o => {
/* this.customerData.forEach(o => {
if (!this.customerMap.has(o.ccontactname)) { if (!this.customerMap.has(o.ccontactname)) {
this.customerMap.set(o.ccontactname, o.cnative); this.customerMap.set(o.ccontactname, o.cnative);
} }
});
}); */
} else { } else {
this.$alert(data.msg, '错误', { this.$alert(data.msg, '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'
@ -1652,11 +1652,11 @@
} }
}); });
}, },
setDestination(){
/* setDestination(){
this.detailList.forEach(o => o.destination=this.customerMap.get(this.declarationData.overseasShipper)) this.detailList.forEach(o => o.destination=this.customerMap.get(this.declarationData.overseasShipper))
this.declarationData.receiveArea=this.customerMap.get(this.declarationData.overseasShipper) this.declarationData.receiveArea=this.customerMap.get(this.declarationData.overseasShipper)
this.declarationData.salesArea=this.customerMap.get(this.declarationData.overseasShipper) this.declarationData.salesArea=this.customerMap.get(this.declarationData.overseasShipper)
},
}, */
saveDeclaration(){ saveDeclaration(){
if(this.detailList==null|| this.detailList.length<1){ if(this.detailList==null|| this.detailList.length<1){
this.$alert('不存在明细记录!', '错误', { this.$alert('不存在明细记录!', '错误', {

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

@ -55,6 +55,7 @@
username: this.$store.state.user.name, username: this.$store.state.user.name,
} }
this.pageData.buNo=inData.buNo this.pageData.buNo=inData.buNo
this.pageData.cmcInvoice=inData.cmcInvoice
getBuList(tempData).then(({data}) => { getBuList(tempData).then(({data}) => {
if (data.code === 0) { if (data.code === 0) {
this.buList = data.row2 this.buList = data.row2
@ -105,6 +106,7 @@
} }
const formData = new FormData() const formData = new FormData()
formData.append("buNo",this.pageData.buNo) formData.append("buNo",this.pageData.buNo)
formData.append("cmcInvoice",this.pageData.cmcInvoice)
formData.append("username",this.$store.state.user.name) formData.append("username",this.$store.state.user.name)
formData.append("file", this.fileList[0].raw) formData.append("file", this.fileList[0].raw)
// formData.append("createBy", this.pageData.createBy) // formData.append("createBy", this.pageData.createBy)
@ -114,7 +116,10 @@
// //
this.closeDialog() this.closeDialog()
} else { } else {
this.$message.error(data.msg)
//this.$message.error(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
} }
}) })
}, },

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

@ -367,7 +367,10 @@
// //
this.closeDialog() this.closeDialog()
} else { } else {
this.$message.error(data.msg)
//this.$message.error(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
} }
}) })
}, },

2
src/views/modules/ecss/ecssWalMartOrder.vue

@ -506,7 +506,7 @@ import walUploadExcel from "./walmart_upload_excel.vue";
this.searchTable() this.searchTable()
}, },
created() { created() {
this.getBu ()
//this.getBu ()
} }
} }
</script> </script>

Loading…
Cancel
Save