|
@@ -10,6 +10,9 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
+ <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" :disabled="form.status>0"
|
|
|
+ @click="confirmEdit" v-if="optionForm.disabled === true">编辑
|
|
|
+ </el-button>
|
|
|
<el-dropdown style="margin-right: 10px">
|
|
|
<el-button type="primary" size="small">
|
|
|
审核处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -170,7 +173,7 @@
|
|
|
</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="confirmChange">确 定</el-button>
|
|
|
+ <el-button type="primary" :disabled="disabledVisible" @click="confirmChange">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -237,6 +240,7 @@ export default {
|
|
|
boxTrack: false,
|
|
|
importOpen: false,
|
|
|
dialogVisible: false,
|
|
|
+ disabledVisible:false,
|
|
|
checkScheduleDialog: false,
|
|
|
checkId: '',
|
|
|
batchNo: '',
|
|
@@ -368,7 +372,12 @@ export default {
|
|
|
prop: 'corpId',
|
|
|
width: 100,
|
|
|
search: true,
|
|
|
- overHidden: true
|
|
|
+ overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '船公司',
|
|
|
prop: 'shippingCompany',
|
|
@@ -407,13 +416,23 @@ export default {
|
|
|
prop: 'departureHarbor',
|
|
|
width: 100,
|
|
|
search: true,
|
|
|
- overHidden: true
|
|
|
+ overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '目的港',
|
|
|
prop: 'objectiveHarbor',
|
|
|
width: 100,
|
|
|
search: true,
|
|
|
- overHidden: true
|
|
|
+ overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '合同生效日期',
|
|
|
prop: 'effectiveDate',
|
|
@@ -423,6 +442,12 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ labelWidth:100,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '合同失效日期',
|
|
|
prop: 'expiryDate',
|
|
@@ -432,6 +457,12 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ labelWidth:100,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '起租日期',
|
|
|
prop: 'startingRentDate',
|
|
@@ -441,6 +472,11 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '出场日期',
|
|
|
prop: 'exitDate',
|
|
@@ -450,6 +486,11 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '入场日期',
|
|
|
prop: 'admissionDate',
|
|
@@ -459,6 +500,11 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '租金合计',
|
|
|
prop: 'totalAmount',
|
|
@@ -529,12 +575,22 @@ export default {
|
|
|
props: {
|
|
|
label: "code",
|
|
|
value: "code"
|
|
|
- }
|
|
|
+ },
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '地点',
|
|
|
prop: 'address',
|
|
|
overHidden: true,
|
|
|
- width: 100
|
|
|
+ width: 100,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '日期',
|
|
|
prop: 'newDate',
|
|
@@ -543,6 +599,11 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '箱类型',
|
|
|
prop: 'boxTypeId',
|
|
@@ -554,7 +615,12 @@ export default {
|
|
|
label: 'name',
|
|
|
value: 'id'
|
|
|
},
|
|
|
- dicUrl: '/api/blade-client/container/listMessage'
|
|
|
+ dicUrl: '/api/blade-client/container/listMessage',
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '币别',
|
|
|
prop: 'currency',
|
|
@@ -566,7 +632,12 @@ export default {
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictKey"
|
|
|
- }
|
|
|
+ },
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '租金收入',
|
|
|
prop: 'amount',
|
|
@@ -574,6 +645,11 @@ export default {
|
|
|
value:0,
|
|
|
controls: false,
|
|
|
overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '超期单价/天',
|
|
|
prop: 'price',
|
|
@@ -581,6 +657,11 @@ export default {
|
|
|
value:0,
|
|
|
controls: false,
|
|
|
overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '超期箱使收入',
|
|
|
prop: 'overdueAmount',
|
|
@@ -635,13 +716,42 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if (this.onLoad.id && this.detailData.id) {
|
|
|
- this.refresh(this.onLoad.id)
|
|
|
+ this.refresh(this.onLoad.id,true)
|
|
|
}else if (this.onLoad.id){
|
|
|
- this.refresh(this.onLoad.id)
|
|
|
+ this.refresh(this.onLoad.id,true)
|
|
|
}
|
|
|
this.key++
|
|
|
},
|
|
|
methods: {
|
|
|
+ confirmEdit() {
|
|
|
+ if (this.form.status > 0) {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", true)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", true)
|
|
|
+ this.$set(this.option, "addBtn", false)
|
|
|
+ this.$set(this.option, "menu", false)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", false)
|
|
|
+ this.$set(this.$refs.boxCost.option, "menu", false)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = true
|
|
|
+ } else {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", false)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", false)
|
|
|
+ this.$set(this.option, "addBtn", true)
|
|
|
+ this.$set(this.option, "menu", true)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", false)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "menu", true)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = false
|
|
|
+ }
|
|
|
+ },
|
|
|
//打开箱档案导入
|
|
|
importBox() {
|
|
|
this.importOpen = true
|
|
@@ -690,14 +800,18 @@ export default {
|
|
|
this.$refs["formState"].validate((valid, done) => {
|
|
|
done()
|
|
|
if (valid) {
|
|
|
+ this.disabledVisible = true
|
|
|
statusUpdate({
|
|
|
...this.formState,
|
|
|
ids: data.join(',')
|
|
|
}).then(res => {
|
|
|
this.$message.success("操作成功")
|
|
|
this.dialogVisible = false
|
|
|
+ this.disabledVisible = false
|
|
|
this.formState = {}
|
|
|
this.refresh(this.form.id)
|
|
|
+ }).catch(()=>{
|
|
|
+ this.disabledVisible = false
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -742,7 +856,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.formState)
|
|
|
this.dialogVisible = true
|
|
|
} else {
|
|
|
this.$message.error('请保存后操作')
|
|
@@ -855,7 +968,7 @@ export default {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
pageLabel: "出库装运",
|
|
|
- checkFlag: 1,
|
|
|
+ checkFlag: 2,
|
|
|
}
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
@@ -875,6 +988,12 @@ export default {
|
|
|
for (let item of this.dataList) {
|
|
|
if (item.status !== "空箱入场") return this.$message.error("有未空箱入场的明细,禁止请核!")
|
|
|
}
|
|
|
+ if (this.dataList.length === 0) {
|
|
|
+ return this.$message.error("箱信息不能为空")
|
|
|
+ }
|
|
|
+ if (this.dataListTwo.length === 0) {
|
|
|
+ return this.$message.error("费用信息不能为空")
|
|
|
+ }
|
|
|
this.$confirm("您确定提交请核申请吗?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -883,12 +1002,6 @@ export default {
|
|
|
this.$refs["form"].validate((valid, done) => {
|
|
|
done()
|
|
|
if (valid) {
|
|
|
- if (this.dataList.length === 0) {
|
|
|
- return this.$message.error("箱信息不能为空")
|
|
|
- }
|
|
|
- if (this.dataListTwo.length === 0) {
|
|
|
- return this.$message.error("费用信息不能为空")
|
|
|
- }
|
|
|
let data = {
|
|
|
...this.form,
|
|
|
transportItemList: this.dataList,
|
|
@@ -908,7 +1021,7 @@ export default {
|
|
|
url: '/boxManagement/exportShipment/index',
|
|
|
pageStatus: "this.$store.getters.domSaleStatus",
|
|
|
pageLabel: "出口装运",
|
|
|
- checkFlag: 1,
|
|
|
+ checkFlag: 2,
|
|
|
}
|
|
|
pleaseCheck({
|
|
|
...data,
|
|
@@ -917,6 +1030,8 @@ export default {
|
|
|
loading.close();
|
|
|
this.$message.success('请核成功')
|
|
|
this.refresh(res.data.data.id)
|
|
|
+ }).catch(()=>{
|
|
|
+ loading.close();
|
|
|
})
|
|
|
}).catch(()=>{
|
|
|
loading.close();
|
|
@@ -929,7 +1044,7 @@ export default {
|
|
|
choceScheduleFun() {
|
|
|
this.checkScheduleDialog = false
|
|
|
},
|
|
|
- refresh(id) {
|
|
|
+ refresh(id,type) {
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: '加载中',
|
|
@@ -945,7 +1060,7 @@ export default {
|
|
|
delete this.form.transportItemFeesList
|
|
|
delete this.form.transportFilesList
|
|
|
loading.close();
|
|
|
- if (this.form.status > 0) {
|
|
|
+ if (type) {
|
|
|
//基础资料
|
|
|
this.$set(this.optionForm, "disabled", true)
|
|
|
//箱信息
|
|
@@ -958,20 +1073,37 @@ export default {
|
|
|
this.$set(this.$refs.boxCost.option, "menu", false)
|
|
|
//附件和顶部按钮
|
|
|
this.disabled = true
|
|
|
- } else {
|
|
|
- //基础资料
|
|
|
- this.$set(this.optionForm, "disabled", false)
|
|
|
- //箱信息
|
|
|
- this.$set(this.option, "disabled", false)
|
|
|
- this.$set(this.option, "addBtn", true)
|
|
|
- this.$set(this.option, "menu", true)
|
|
|
- //费用信息
|
|
|
- this.$set(this.$refs.boxCost.option, "disabled", false)
|
|
|
- this.$set(this.$refs.boxCost.option, "addBtn", true)
|
|
|
- this.$set(this.$refs.boxCost.option, "menu", true)
|
|
|
- //附件和顶部按钮
|
|
|
- this.disabled = false
|
|
|
+ }else {
|
|
|
+ if (this.form.status > 0) {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", true)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", true)
|
|
|
+ this.$set(this.option, "addBtn", false)
|
|
|
+ this.$set(this.option, "menu", false)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", false)
|
|
|
+ this.$set(this.$refs.boxCost.option,"menu",false)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = true
|
|
|
+ } else {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", false)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", false)
|
|
|
+ this.$set(this.option, "addBtn", true)
|
|
|
+ this.$set(this.option, "menu", true)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", false)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "menu", true)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = false
|
|
|
+ }
|
|
|
}
|
|
|
+ }).catch(()=>{
|
|
|
+ loading.close();
|
|
|
})
|
|
|
},
|
|
|
//新增修改
|
|
@@ -1109,21 +1241,36 @@ export default {
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
},
|
|
|
- resetTrigger(){
|
|
|
- if (this.form.status > 0) {
|
|
|
- //基础资料
|
|
|
- this.$set(this.optionForm, "disabled", true)
|
|
|
- //箱信息
|
|
|
- this.$set(this.option, "disabled", true)
|
|
|
- this.$set(this.option, "addBtn", false)
|
|
|
- this.$set(this.option, "menu", false)
|
|
|
- //费用信息
|
|
|
- this.$set(this.$refs.boxCost.option,"disabled",true)
|
|
|
- this.$set(this.$refs.boxCost.option,"addBtn",false)
|
|
|
- this.$set(this.$refs.boxCost.option,"menu",false)
|
|
|
- //附件和顶部按钮
|
|
|
- this.disabled = true
|
|
|
- } else {
|
|
|
+ resetTrigger() {
|
|
|
+ if (this.optionForm.disabled == true) {
|
|
|
+ if (this.form.status > 0) {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", true)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", true)
|
|
|
+ this.$set(this.option, "addBtn", false)
|
|
|
+ this.$set(this.option, "menu", false)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", false)
|
|
|
+ this.$set(this.$refs.boxCost.option,"menu",false)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = true
|
|
|
+ } else {
|
|
|
+ //基础资料
|
|
|
+ this.$set(this.optionForm, "disabled", false)
|
|
|
+ //箱信息
|
|
|
+ this.$set(this.option, "disabled", false)
|
|
|
+ this.$set(this.option, "addBtn", true)
|
|
|
+ this.$set(this.option, "menu", true)
|
|
|
+ //费用信息
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", false)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "menu", true)
|
|
|
+ //附件和顶部按钮
|
|
|
+ this.disabled = false
|
|
|
+ }
|
|
|
+ }else {
|
|
|
//基础资料
|
|
|
this.$set(this.optionForm, "disabled", false)
|
|
|
//箱信息
|
|
@@ -1131,9 +1278,9 @@ export default {
|
|
|
this.$set(this.option, "addBtn", true)
|
|
|
this.$set(this.option, "menu", true)
|
|
|
//费用信息
|
|
|
- this.$set(this.$refs.boxCost.option,"disabled",false)
|
|
|
- this.$set(this.$refs.boxCost.option,"addBtn",true)
|
|
|
- this.$set(this.$refs.boxCost.option,"menu",true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "disabled", false)
|
|
|
+ this.$set(this.$refs.boxCost.option, "addBtn", true)
|
|
|
+ this.$set(this.$refs.boxCost.option, "menu", true)
|
|
|
//附件和顶部按钮
|
|
|
this.disabled = false
|
|
|
}
|