科室出库修改

dev_ksck2.0
anthonywj 1 year ago
parent 7c1485060c
commit f8c3f714b8

@ -270,11 +270,13 @@
v-model="checkPreInArray" v-model="checkPreInArray"
:disabled="corpOrderIdDisabled" :disabled="corpOrderIdDisabled"
multiple multiple
ref="preRef"
:key="checkPreInArray"
placeholder="请选入单据" placeholder="请选入单据"
> >
<el-option <el-option
v-for="(item, index) in checkPreInArray" v-for="item in checkPreInArray"
:key="item.index" :key="item"
:label="item" :label="item"
:value="item" :value="item"
> >
@ -1038,8 +1040,10 @@ export default {
// //
actionChange(item) { actionChange(item) {
this.orderFormData.checkPreInOption = null; this.orderFormData.checkPreInOption = null;
this.orderFormData.checkPreInOrders = null; if (!this.viewTypeKsck) {
this.checkPreInArray = []; this.orderFormData.checkPreInOrders = null;
this.checkPreInArray = [];
}
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
if ((this.curAction.checkEnable && this.curAction.checkWebNew != 0) || this.viewType == 1) { if ((this.curAction.checkEnable && this.curAction.checkWebNew != 0) || this.viewType == 1) {
// 1 // 1
@ -1757,7 +1761,7 @@ export default {
getConfig() { getConfig() {
selectSysParamByKey({"paramKey": "his_sicker"}).then((response) => { selectSysParamByKey({"paramKey": "his_sicker"}).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
if (response.data.paramValue == "1") { if (this.$isNotBlank(response.data) && response.data.paramValue == "1") {
this.enableSick = true; this.enableSick = true;
} }
} }
@ -1795,7 +1799,6 @@ export default {
}, },
created() { created() {
// //
debugger
this.codeFormData.code = ""; this.codeFormData.code = "";
// //
if (this.viewType == 2) { if (this.viewType == 2) {
@ -1818,11 +1821,16 @@ export default {
this.getConfig(); this.getConfig();
if (this.$isNotBlank(this.orderQuery.billNo)) { if (this.$isNotBlank(this.orderQuery.billNo)) {
// //
debugger
this.corpOrderIdDisabled = true; this.corpOrderIdDisabled = true;
this.orderFormData = this.orderQuery; this.orderFormData = this.orderQuery;
this.actionEnable = true; this.actionEnable = true;
if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) { if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) {
this.checkPreInArray = this.orderFormData.split(","); if (this.orderFormData.checkPreInOrders.includes(",")) {
this.checkPreInArray = this.orderFormData.checkPreInOrders.split(",");
} else {
this.checkPreInArray = [this.orderFormData.checkPreInOrders]
}
} }
this.findMethod(this.orderFormData.fromCorp); this.findMethod(this.orderFormData.fromCorp);
this.curAction = {} this.curAction = {}

@ -56,7 +56,7 @@
<el-card class="el-card"> <el-card class="el-card">
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="6" v-for="(bazi,key) in list" :key="key" :xs="12" :sm="8" :md="6" :lg="6"> <el-col v-for="(bazi,key) in list" :key="key" :xs="12" :sm="8" :md="8" :lg="6">
<BaziPanel :info="bazi" @baziPanel="getValue"></BaziPanel> <BaziPanel :info="bazi" @baziPanel="getValue"></BaziPanel>
</el-col> </el-col>
</el-row> </el-row>
@ -319,6 +319,7 @@ export default {
getOrderListbyCode(query) getOrderListbyCode(query)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.orderListDate = response.data;
if (this.orderListDate.length > 0) { if (this.orderListDate.length > 0) {
this.idQuery = this.orderListDate[0]; // this.idQuery = this.orderListDate[0]; //
} else { } else {

Loading…
Cancel
Save