|
@@ -33,7 +33,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="入库类型" prop="detailType" style="width: 100%; margin-bottom: 18px">
|
|
|
<el-select v-model="formData.data.detailType" placeholder="请选择入库类型" clearable style="width: 100%">
|
|
|
- <el-option v-for="item in useUserStore().allDict['put_stock_type']" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
|
+ <el-option v-for="item in getType()" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="申请人" prop="applicant" style="width: 100%; margin-bottom: 18px">
|
|
@@ -277,6 +277,13 @@ const clickCancel = () => {
|
|
|
path: "/production/warehouse/warehouse-putInStorage",
|
|
|
});
|
|
|
};
|
|
|
+const getType = () => {
|
|
|
+ let list = [];
|
|
|
+ if (proxy.useUserStore().allDict["put_stock_type"] && proxy.useUserStore().allDict["put_stock_type"].length > 0) {
|
|
|
+ list = proxy.useUserStore().allDict["put_stock_type"].filter((item) => item.dictKey == "1");
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|