3/10 上货编辑

20240912_adapter
wangwei 4 weeks ago
parent 6fdfba97a1
commit 3937d7d68c

@ -409,12 +409,21 @@
</el-tooltip> </el-tooltip>
作业模式: 作业模式:
</template> </template>
<el-select v-model="formData.jobMode" style="width: 80%" placeholder="请选择作业模式"> <el-select v-model="formData.jobMode" style="width: 80%" placeholder="请选择作业模式" @change="selectIsUseMinUnit()">
<el-option label="药房发药模式" :value="0"></el-option> <el-option label="药房发药模式" :value="0"></el-option>
<el-option label="药库统一模式" :value="1"></el-option> <el-option label="药库统一模式" :value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col">
<el-form-item label="是否只允许采集最小销售单元:" prop="isUseMinUnit" class="query-form-item">
<el-select v-model="formData.isUseMinUnit" style="width: 80%" placeholder="请选择作业模式" :disabled="isDisabled">
<el-option label="是" :value="true"></el-option>
<el-option label="否" :value="false"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="24"> <el-row :gutter="24">
@ -747,6 +756,7 @@ export default {
remake: null, remake: null,
productType:1, productType:1,
jobMode: 1, jobMode: 1,
isUseMinUnit: false,
}, },
fromDeptOptions: [], fromDeptOptions: [],
invQuery: { invQuery: {
@ -768,7 +778,8 @@ export default {
// ] // ]
}, },
deptCode: null, deptCode: null,
// 使
isDisabled: false,
} }
}, },
computed: {}, computed: {},
@ -1023,8 +1034,10 @@ export default {
queueStatus:0, queueStatus:0,
remake: null, remake: null,
productType:1, productType:1,
jobMode:0 jobMode:0,
isUseMinUnit: true,
} }
this.isDisabled = true
if (this.groupData != null) { if (this.groupData != null) {
this.formData.constituencies = this.groupData.code this.formData.constituencies = this.groupData.code
} }
@ -1173,6 +1186,9 @@ export default {
} else { } else {
this.formData.chargeUser = row.chargeUser this.formData.chargeUser = row.chargeUser
} }
if (this.formData.jobMode == 0){
this.isDisabled = true
}
this.fromName = 'edit' this.fromName = 'edit'
this.invQuery.deptCode = row.deptCode this.invQuery.deptCode = row.deptCode
getUsers(this.invQuery).then(res => { getUsers(this.invQuery).then(res => {
@ -1237,6 +1253,15 @@ export default {
// } // }
// } // }
// } // }
selectIsUseMinUnit() {
if (this.formData.jobMode == 0) {
this.isDisabled = true;
this.formData.isUseMinUnit = true;
} else if (this.formData.jobMode == 1) {
this.isDisabled = false;
this.formData.isUseMinUnit = false;
}
}
}, },
created() { created() {
this.getDepts() this.getDepts()

Loading…
Cancel
Save