|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div style="width: 100%; padding: 0px 15px">
|
|
|
+
|
|
|
<byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="formDom">
|
|
|
<template #commodity>
|
|
|
<div style="width: 100%">
|
|
@@ -34,7 +35,7 @@
|
|
|
<template #default="{ row, $index }">
|
|
|
<el-form-item :prop="'outboundRecordList.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true" class="margin-b-0">
|
|
|
<el-input-number onmousewheel="return false;" v-model="row.quantity" placeholder="请输入" style="width: 100%" :precision="0"
|
|
|
- :controls="false" :min="0" @change="totalAmount()" />
|
|
|
+ :controls="false" :min="0" @change="totalAmount()" :disabled="isDetail" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -44,6 +45,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</byForm>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -106,10 +108,28 @@ const formConfig = computed(() => {
|
|
|
itemWidth: 25,
|
|
|
disabled: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ prop: "asd",
|
|
|
+ label: "有无返单",
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ dictKey: 10,
|
|
|
+ dictValue: "有",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ dictKey: 20,
|
|
|
+ dictValue: "无",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ itemWidth: 25,
|
|
|
+ isShow: isProductManager.value && route.query.processType == 10,
|
|
|
+ },
|
|
|
];
|
|
|
});
|
|
|
const rules = ref({
|
|
|
quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
|
|
|
+ asd: [{ required: true, message: "请选择有无返单", trigger: "change" }],
|
|
|
});
|
|
|
|
|
|
const totalAmount = () => {
|
|
@@ -208,9 +228,14 @@ const getAllData = (businessId) => {
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+const isDetail = ref(false);
|
|
|
+const isProductManager = ref(false);
|
|
|
onMounted(() => {
|
|
|
- formOption.disabled = judgeStatus();
|
|
|
+ // formOption.disabled = judgeStatus();
|
|
|
+ if (proxy.useUserStore().roles.includes("ProductManager")) {
|
|
|
+ isProductManager.value = true;
|
|
|
+ }
|
|
|
+ isDetail.value = judgeStatus();
|
|
|
if (route.query && route.query.businessId && !route.query.processType) {
|
|
|
let businessId = route.query.businessId;
|
|
|
getAllData(businessId);
|