|
@@ -76,8 +76,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 判断属性是否禁用
|
|
|
- async handleIsForbidden(status) {
|
|
|
- let { updateColumns, updateTabColumns } = await forbidden(status != '2');
|
|
|
+ async handleIsForbidden(status,source) {
|
|
|
+ let { updateColumns, updateTabColumns } = await forbidden(status != '2',source);
|
|
|
this.columns = updateColumns;
|
|
|
this.tabColumns = updateTabColumns;
|
|
|
this.count++;
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
const { code, msg, data } = await orderApi.details(prop);
|
|
|
if (code === 200) {
|
|
|
this.params = { ...this.params, ...data };
|
|
|
- this.handleIsForbidden(this.params.status);
|
|
|
+ this.handleIsForbidden(this.params.status,this.params.source);
|
|
|
}
|
|
|
} catch (err) {
|
|
|
//
|
|
@@ -217,19 +217,20 @@ export default {
|
|
|
beforeOpen() {
|
|
|
},
|
|
|
// 子表参照改变之后
|
|
|
- handleReferChange(val, source, type) {
|
|
|
+ async handleTabReferChange(val, source, type) {
|
|
|
// 触发物料参照
|
|
|
- if (type == 'MATERIAL_PARAM' && source.qty && source.qty != '') {
|
|
|
+ if (type == "MATERIAL_PARAM") {
|
|
|
|
|
|
- source['whetherCompleteInquiry'] = false;
|
|
|
+ source['qty'] = 0;
|
|
|
|
|
|
- this.handleGetPrice();
|
|
|
- }
|
|
|
+ source['whetherCompleteInquiry'] = false;
|
|
|
|
|
|
- if(type == "MATERIAL_PARAM"){
|
|
|
source.isDrug = val.materialMedcine.isDrug == '0' ? 'Y' : 'N';
|
|
|
- // return source;
|
|
|
+
|
|
|
+ await this.handleGetPrice();
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 子表Select改变之后
|
|
@@ -501,7 +502,7 @@ export default {
|
|
|
:data-mapping="cColumn.dataMapping"
|
|
|
:query-params="cColumn.queryParams"
|
|
|
size="mini"
|
|
|
- @change="handleReferChange"
|
|
|
+ @change="handleTabReferChange"
|
|
|
></dr-popover-select>
|
|
|
|
|
|
<el-select v-if="cColumn.inputType === 'Select'"
|