Browse Source

关务系统bug

java8
han\hanst 9 months ago
parent
commit
3d6f99cf59
  1. 2
      src/api/ecss/ecss.js
  2. 4
      src/views/modules/ecss/codelnotify.vue
  3. 73
      src/views/modules/ecss/codelnotifyConfirm.vue
  4. 2
      src/views/modules/ecss/package.vue
  5. 2
      src/views/modules/ecss/pallet.vue
  6. 8
      src/views/modules/ecss/partHsCode.vue

2
src/api/ecss/ecss.js

@ -19,6 +19,8 @@ export const deleteEcssDelDetail= data => createAPI(`/ecss/coDel/deleteEcssDelDe
export const confirmEcssDel= data => createAPI(`/ecss/coDel/confirmEcssDel`,'post',data)
export const updateEcssDel= data => createAPI(`/ecss/coDel/updateEcssDel`,'post',data)
export const cancerConfirmEcssDel= data => createAPI(`/ecss/coDel/cancerConfirmEcssDel`,'post',data)
export const searchEcssCoDelNotifyHeaderForCK = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyHeaderForCK`,'post',data)

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

@ -189,7 +189,7 @@
</el-tab-pane>
</el-tabs>
<el-dialog title="编辑发货通知单" :close-on-click-modal="false" v-drag :visible.sync="updateHeaderModelFlag" width="750px">
<el-dialog title="编辑发货通知单" :close-on-click-modal="false" v-drag :visible.sync="updateHeaderModelFlag" width="674px">
<el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-row :gutter="20">
<el-col :span="6">
@ -226,7 +226,7 @@
<el-input v-model="updateHeaderModel.shippingMode" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="12">
<el-form-item :label="'Destination'" >
<el-input v-model="updateHeaderModel.destination" ></el-input>
</el-form-item>

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

@ -67,7 +67,7 @@
fixed="left"
label="操作">
<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==='已下达'" @click="confirmModelOpen(scope.row)">仓库确认</a>
<a type="text" size="small" v-if="scope.row.notifyStatus==='仓库已确认'" @click="cancerConfirm(scope.row)">取消确认</a>
</template>
@ -293,7 +293,30 @@
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="confirmDo()">保存</el-button>
<el-button type="primary" @click="boxDetailModelFlag=false">关闭</el-button>
<el-button type="primary" @click="confirmModelFlag=false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="修改" :close-on-click-modal="false" v-drag :visible.sync="updateModelFlag" width="260px">
<el-form label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item :label="'ReadyDate'" >
<el-date-picker
style="width: 100%"
v-model="confirmModel.readyDate"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="updateDo()">保存</el-button>
<el-button type="primary" @click="updateModelFlag=false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="装箱" :close-on-click-modal="false" v-drag :visible.sync="palletModelFlag" width="600px">
@ -373,7 +396,7 @@
<el-col :span="6">
<el-form-item >
<span slot="label" @click="openPartDialog()"><a herf="#">物料编码</a></span>
<el-input v-model="boxModelData.partNo" ></el-input>
<el-input v-model="boxModelData.pn" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -447,7 +470,7 @@
@row-dblclick="partRowDblclick"
style="width: 100%;">
<el-table-column
prop="partNo"
prop="pn"
header-align="center"
align="center"
label="物料编码">
@ -538,6 +561,7 @@
searchEcssCoDelNotifyHeaderForCK,
searchEcssCoDelNotifyDetail,
confirmEcssDel,
updateEcssDel,
cancerConfirmEcssDel,
searchCoDelPalletData,
searchEcssCoDelPalletHeaderData,
@ -627,6 +651,7 @@
seqNo:'',
itemNo:'',
partNo:'',
pn:'',
qty:'',
poNo:'',
boxQty:'',
@ -637,6 +662,7 @@
search:'查询',
},
confirmModelFlag:false,
updateModelFlag:false,
confirmModel:{
site:'',
buDesc:'',
@ -1840,6 +1866,7 @@
},
partRowDblclick (row) {
this.boxModelData.partNo = row.partNo
this.boxModelData.pn = row.pn
this.partFlag = false
},
// S
@ -1941,6 +1968,12 @@
},
confirmDo(){
if (!this.confirmModel.notifyDate) {
this.$alert('请选择预计发货日期!', '错误', {
confirmButtonText: '确定'
})
return false
}
confirmEcssDel(this.confirmModel).then(({data}) => {
if (data && data.code === 0) {
this.searchTable()
@ -1991,6 +2024,34 @@
this.confirmModel=JSON.parse(JSON.stringify(row));
this.confirmModelFlag=true
},
updateModelOpen(row){
this.confirmModel=JSON.parse(JSON.stringify(row));
this.updateModelFlag=true
},
updateDo(){
if (!this.confirmModel.readyDate) {
this.$alert('请选择ReadyDate!', '错误', {
confirmButtonText: '确定'
})
return false
}
updateEcssDel(this.confirmModel).then(({data}) => {
if (data && data.code === 0) {
this.searchTable()
this.updateModelFlag=false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
upLoadPallet(){
if(this.dataList3.length>0){
this.$alert('已经有明细无法再次导入请去手工装箱全部删除!', '错误', {
@ -2034,6 +2095,8 @@
},
updatePalletModel(row){
this.palletModelData=JSON.parse(JSON.stringify(row))
this.palletModelData.pallet=row.palletNo
this.palletModelData.palletRemark=row.palletRemark
this.palletModelData.addFlag=1
this.palletModelFlag=true
},
@ -2059,6 +2122,7 @@
volume:'',
grossWeight:'',
netWeight:'',
pallet:'',
palletRemark:'',
}
searchEcssCoDelNotifyDetail(this.currentRow).then(({data}) => {
@ -2152,6 +2216,7 @@
seqNo:this.boxDetailData.seqNo,
itemNo:'',
partNo:'',
pn:'',
qty:'',
poNo:'',
boxQty:'',

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

@ -430,7 +430,7 @@
},
mounted() {
this.$nextTick(() => {
this.height = (window.innerHeight - 240)/2;
this.height = (window.innerHeight - 200);
})
},
methods: {

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

@ -417,7 +417,7 @@
},
mounted() {
this.$nextTick(() => {
this.height = (window.innerHeight - 240)/2;
this.height = (window.innerHeight - 200);
})
},
methods: {

8
src/views/modules/ecss/partHsCode.vue

@ -900,7 +900,7 @@
},
saveHSCode(){
if(this.hsCodeModelData.hsCode===''||this.hsCodeModelData.hsCode==null){
this.$alert('请输入HSCODE!', '错误', {
this.$alert('请输入HS Code!', '错误', {
confirmButtonText: '确定'
})
return false
@ -911,12 +911,6 @@
})
return false
}
if(this.hsCodeModelData.packageNo===''||this.hsCodeModelData.packageNo==null){
this.$alert('请选择包装箱!', '错误', {
confirmButtonText: '确定'
})
return false
}
savePartHSCode(this.hsCodeModelData).then(({data}) => {
if (data && data.code === 0) {
this.searchTable()

Loading…
Cancel
Save