Commit f5055f27 by lixinyi

botdcr闭卷修改

parent b87e2222
...@@ -115,7 +115,7 @@ let checkObj = { ...@@ -115,7 +115,7 @@ let checkObj = {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bodgrp.col.pts.adrblk":[ "bodgrp.col.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 150,message:"长度不能超过150"} {max: 150,message:"长度不能超过150"}
], ],
"bodgrp.col.dbfadrblkcn":[ "bodgrp.col.dbfadrblkcn":[
......
...@@ -18,6 +18,7 @@ export default class Botdav { ...@@ -18,6 +18,7 @@ export default class Botdav {
dircolflg: "", // Direct Collection .bodgrp.rec.dircolflg dircolflg: "", // Direct Collection .bodgrp.rec.dircolflg
resflg: "", // Reservated Contract .bodgrp.rec.resflg resflg: "", // Reservated Contract .bodgrp.rec.resflg
rcvdat: "", // Order Date .bodgrp.rec.rcvdat rcvdat: "", // Order Date .bodgrp.rec.rcvdat
clsdat: "",
shpdat: "", // Shipment date .bodgrp.rec.shpdat shpdat: "", // Shipment date .bodgrp.rec.shpdat
predat: "", // Presentation Date .bodgrp.rec.predat predat: "", // Presentation Date .bodgrp.rec.predat
advdat: "", // Dispatched on .bodgrp.rec.advdat advdat: "", // Dispatched on .bodgrp.rec.advdat
......
...@@ -108,6 +108,7 @@ export default class Botdcr { ...@@ -108,6 +108,7 @@ export default class Botdcr {
}, },
}, },
rejtypsel: "", // .rejtypsel rejtypsel: "", // .rejtypsel
clsflg: "",
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="拒单类型" prop="rejtypsel"> <el-form-item label="拒单类型" prop="rejtypsel">
<c-select v-model="model.rejtypsel" style="width:100%" placeholder="拒单类型" <c-select v-model="model.rejtypsel" style="width:100%" placeholder="请输入拒单类型"
:code="codes.rejtypsel"> :code="codes.rejtypsel">
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="clsflg"> <el-form-item label="" prop="clsflg">
<c-checkbox v-model="clsflg" :disabled="model.rejtypsel != 'R'">闭卷</c-checkbox> <c-checkbox v-model="model.clsflg" :disabled="model.rejtypsel != 'R'">闭卷</c-checkbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -202,6 +202,7 @@ ...@@ -202,6 +202,7 @@
import event from "../event" import event from "../event"
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre"; import Docpre from "~/views/Public/Docpre";
import moment from 'moment';
export default { export default {
components: { components: {
...@@ -220,17 +221,30 @@ export default { ...@@ -220,17 +221,30 @@ export default {
} }
}, },
computed: { computed: {
clsflg: { // clsflg: {
get() { // get() {
return this.model.rejtypsel == "R"; // return this.model.rejtypsel == "R";
}, // },
set(val) { // set(val) {
this.model.mtabut.clsflg = val ? "C" : "O"; // this.model.clsflg = val ? "C" : "O";
// },
// }
}, },
methods: {},
watch:{
"model.rejtypsel":{
immediate: true,
handler(val, oldVal) {
if (this.model.rejtypsel == 'R') {
this.model.clsflg = 'X';
this.model.bodgrp.rec.clsdat = moment().format('YYYY-MM-DD');
} else {
this.model.clsflg = '';
this.model.bodgrp.rec.clsdat = '';
}
}
} }
}, },
methods: {},
created: function () {} created: function () {}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment