Commit f5055f27 by lixinyi

botdcr闭卷修改

parent b87e2222
......@@ -115,7 +115,7 @@ let checkObj = {
{max: 35,message:"长度不能超过35"}
],
"bodgrp.col.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 150,message:"长度不能超过150"}
],
"bodgrp.col.dbfadrblkcn":[
......
......@@ -18,6 +18,7 @@ export default class Botdav {
dircolflg: "", // Direct Collection .bodgrp.rec.dircolflg
resflg: "", // Reservated Contract .bodgrp.rec.resflg
rcvdat: "", // Order Date .bodgrp.rec.rcvdat
clsdat: "",
shpdat: "", // Shipment date .bodgrp.rec.shpdat
predat: "", // Presentation Date .bodgrp.rec.predat
advdat: "", // Dispatched on .bodgrp.rec.advdat
......
......@@ -108,6 +108,7 @@ export default class Botdcr {
},
},
rejtypsel: "", // .rejtypsel
clsflg: "",
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
......
......@@ -115,7 +115,7 @@
<c-col :span="24">
<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">
</c-select>
</el-form-item>
......@@ -123,7 +123,7 @@
<c-col :span="24">
<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>
</c-col>
<c-col :span="24">
......@@ -202,6 +202,7 @@
import event from "../event"
import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre";
import moment from 'moment';
export default {
components: {
......@@ -220,17 +221,30 @@ export default {
}
},
computed: {
clsflg: {
get() {
return this.model.rejtypsel == "R";
},
set(val) {
this.model.mtabut.clsflg = val ? "C" : "O";
},
}
// clsflg: {
// get() {
// return this.model.rejtypsel == "R";
// },
// set(val) {
// 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 = '';
}
}
}
},
created: function () {}
}
</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