From 984b1ad87807a7053638e50d5f0b905b400077ca Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 22 四月 2026 11:32:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_天津_阳光印刷' into dev_天津_阳光印刷
---
src/views/productionManagement/productionProcess/index.vue | 12 ++----
src/views/qualityManagement/metricMaintenance/StandardFormDialog.vue | 15 +++----
src/views/productionManagement/productionCosting/index.vue | 16 --------
src/views/salesManagement/receiptPaymentLedger/index.vue | 14 -------
src/views/qualityManagement/metricMaintenance/index.vue | 28 +++++++++++---
src/views/qualityManagement/metricMaintenance/ParamFormDialog.vue | 4 +
src/views/salesManagement/salesLedger/index.vue | 2
src/views/productionManagement/productionProcess/Edit.vue | 6 +-
src/views/productionManagement/productionProcess/New.vue | 10 ++--
9 files changed, 45 insertions(+), 62 deletions(-)
diff --git a/src/views/productionManagement/productionCosting/index.vue b/src/views/productionManagement/productionCosting/index.vue
index 737354e..5e90a0c 100644
--- a/src/views/productionManagement/productionCosting/index.vue
+++ b/src/views/productionManagement/productionCosting/index.vue
@@ -149,16 +149,6 @@
minWidth: 100,
},
{
- label: "宸ユ椂瀹氶",
- prop: "workHours",
- minWidth: 100,
- },
- {
- label: "宸ヨ祫",
- prop: "wages",
- minWidth: 100,
- },
- {
label: "鏈哄彴",
prop: "deviceName",
minWidth: 100,
@@ -180,12 +170,6 @@
{
label: "浜ч噺",
prop: "outputNum",
- minWidth: 100,
-
- },
- {
- label: "宸ヨ祫",
- prop: "wages",
minWidth: 100,
},
diff --git a/src/views/productionManagement/productionProcess/Edit.vue b/src/views/productionManagement/productionProcess/Edit.vue
index 2eef090..4466584 100644
--- a/src/views/productionManagement/productionProcess/Edit.vue
+++ b/src/views/productionManagement/productionProcess/Edit.vue
@@ -89,9 +89,9 @@
<el-option label="璁′欢" :value="1" />
</el-select>
</el-form-item>
- <el-form-item label="宸ヨ祫瀹氶" prop="salaryQuota">
- <el-input v-model="formState.salaryQuota" type="number" :step="0.001" />
- </el-form-item>
+<!-- <el-form-item label="宸ヨ祫瀹氶" prop="salaryQuota">-->
+<!-- <el-input v-model="formState.salaryQuota" type="number" :step="0.001" />-->
+<!-- </el-form-item>-->
<el-form-item label="鏄惁璐ㄦ" prop="isQuality">
<el-switch v-model="formState.isQuality" :active-value="true" inactive-value="false"/>
</el-form-item>
diff --git a/src/views/productionManagement/productionProcess/New.vue b/src/views/productionManagement/productionProcess/New.vue
index 3a6222a..5d14dbb 100644
--- a/src/views/productionManagement/productionProcess/New.vue
+++ b/src/views/productionManagement/productionProcess/New.vue
@@ -85,11 +85,11 @@
<el-option label="璁′欢" :value="1" />
</el-select>
</el-form-item>
- <el-form-item label="宸ヨ祫瀹氶" prop="salaryQuota">
- <el-input v-model="formState.salaryQuota" type="number" :step="0.001">
- <template #append>鍏�</template>
- </el-input>
- </el-form-item>
+<!-- <el-form-item label="宸ヨ祫瀹氶" prop="salaryQuota">-->
+<!-- <el-input v-model="formState.salaryQuota" type="number" :step="0.001">-->
+<!-- <template #append>鍏�</template>-->
+<!-- </el-input>-->
+<!-- </el-form-item>-->
<el-form-item label="鏄惁璐ㄦ" prop="isQuality">
<el-switch v-model="formState.isQuality" :active-value="true" inactive-value="false"/>
</el-form-item>
diff --git a/src/views/productionManagement/productionProcess/index.vue b/src/views/productionManagement/productionProcess/index.vue
index ac76651..f81faf8 100644
--- a/src/views/productionManagement/productionProcess/index.vue
+++ b/src/views/productionManagement/productionProcess/index.vue
@@ -103,14 +103,10 @@
label: "宸ュ簭鏈哄彴",
prop: "deviceName",
},
- {
- label: "宸ュ簭绫诲瀷",
- prop: "typeText",
- },
- {
- label: "宸ヨ祫瀹氶",
- prop: "salaryQuota",
- },
+ // {
+ // label: "宸ヨ祫瀹氶",
+ // prop: "salaryQuota",
+ // },
// {
// label: "宸ュ簭",
// prop: "process",
diff --git a/src/views/qualityManagement/metricMaintenance/ParamFormDialog.vue b/src/views/qualityManagement/metricMaintenance/ParamFormDialog.vue
index 4c958a0..e74f3b6 100644
--- a/src/views/qualityManagement/metricMaintenance/ParamFormDialog.vue
+++ b/src/views/qualityManagement/metricMaintenance/ParamFormDialog.vue
@@ -3,6 +3,7 @@
v-model="dialogVisible"
:title="computedTitle"
:operation-type="operationType"
+ :inspectType="inspectType"
width="520px"
@close="emit('close')"
@cancel="handleCancel"
@@ -40,7 +41,8 @@
const props = defineProps({
modelValue: { type: Boolean, default: false },
operationType: { type: String, default: 'add' }, // add | edit
- form: { type: Object, required: true }
+ form: { type: Object, required: true },
+ inspectType: { type: String, default: null },
})
const emit = defineEmits(['update:modelValue', 'close', 'cancel', 'confirm'])
diff --git a/src/views/qualityManagement/metricMaintenance/StandardFormDialog.vue b/src/views/qualityManagement/metricMaintenance/StandardFormDialog.vue
index 38d535a..0827a93 100644
--- a/src/views/qualityManagement/metricMaintenance/StandardFormDialog.vue
+++ b/src/views/qualityManagement/metricMaintenance/StandardFormDialog.vue
@@ -20,14 +20,7 @@
<el-form-item label="鏍囧噯鍚嶇О" prop="standardName">
<el-input v-model="form.standardName" placeholder="璇疯緭鍏ユ爣鍑嗗悕绉�" />
</el-form-item>
- <el-form-item label="绫诲埆" prop="inspectType">
- <el-select v-model="form.inspectType" placeholder="璇烽�夋嫨绫诲埆" style="width: 100%">
- <el-option label="鍘熸潗鏂欐楠�" value="0" />
- <el-option label="杩囩▼妫�楠�" value="1" />
- <el-option label="鍑哄巶妫�楠�" value="2" />
- </el-select>
- </el-form-item>
- <el-form-item label="宸ュ簭" prop="processId">
+ <el-form-item v-if="needProcess" label="宸ュ簭" prop="processId">
<el-select v-model="form.processId" placeholder="璇烽�夋嫨宸ュ簭" style="width: 100%">
<el-option
v-for="item in processOptions"
@@ -84,6 +77,10 @@
width: {
type: String,
default: '500px'
+ },
+ inspectType:{
+ type: String,
+ default: null
}
})
@@ -96,6 +93,8 @@
const formRef = ref(null)
+const needProcess = computed(() => String(props.inspectType ?? '') === '1')
+
const computedTitle = computed(() => {
if (props.operationType === 'edit') return '缂栬緫妫�娴嬫爣鍑�'
if (props.operationType === 'copy') return '澶嶅埗妫�娴嬫爣鍑�'
diff --git a/src/views/qualityManagement/metricMaintenance/index.vue b/src/views/qualityManagement/metricMaintenance/index.vue
index ee17428..6ea4afd 100644
--- a/src/views/qualityManagement/metricMaintenance/index.vue
+++ b/src/views/qualityManagement/metricMaintenance/index.vue
@@ -137,6 +137,7 @@
:operation-type="standardOperationType"
:form="standardForm"
:rules="standardRules"
+ :inspect-type="activeTab"
:process-options="processOptions"
@confirm="submitStandardForm"
@close="closeStandardDialog"
@@ -147,6 +148,7 @@
ref="paramFormDialogRef"
v-model="paramDialogVisible"
:operation-type="paramOperationType"
+ :inspectType="activeTab.value"
:form="paramForm"
@confirm="submitParamForm"
@close="closeParamDialog"
@@ -211,8 +213,17 @@
standardRules: {
standardNo: [{ required: true, message: '璇疯緭鍏ユ爣鍑嗙紪鍙�', trigger: 'blur' }],
standardName: [{ required: true, message: '璇疯緭鍏ユ爣鍑嗗悕绉�', trigger: 'blur' }],
- inspectType: [{ required: true, message: '璇烽�夋嫨妫�娴嬬被鍨�', trigger: 'change' }],
- processId: [{ required: false, message: '璇烽�夋嫨宸ュ簭', trigger: 'change' }]
+ processId: [{
+ validator: (_rule, value, callback) => {
+ const inspectType = String(standardForm.value.inspectType ?? activeTab.value ?? '')
+ if (inspectType === '1' && (value === '' || value === null || value === undefined)) {
+ callback(new Error('璇烽�夋嫨宸ュ簭'))
+ return
+ }
+ callback()
+ },
+ trigger: 'change'
+ }]
}
})
@@ -588,8 +599,8 @@
standardName: '',
remark: '',
state: '0',
- inspectType: '',
- processId: ''
+ inspectType: activeTab.value,
+ processId: activeTab.value === '1' ? '' : null
})
} else if (type === 'edit' && row) {
Object.assign(standardForm.value, {
@@ -598,7 +609,7 @@
inspectType: row.inspectType !== null && row.inspectType !== undefined ? String(row.inspectType) : '',
state: row.state !== null && row.state !== undefined ? String(row.state) : '0',
// 纭繚 processId 杞崲涓哄瓧绗︿覆鎴栨暟瀛楋紙鏍规嵁瀹為檯闇�瑕侊級
- processId: row.processId !== null && row.processId !== undefined ? row.processId : ''
+ processId: String(row.inspectType) === '1' && row.processId !== null && row.processId !== undefined ? row.processId : null
})
} else if (type === 'copy' && row) {
const { id, ...rest } = row
@@ -608,7 +619,8 @@
standardNo: '',
state: '0',
// 纭繚 inspectType 杞崲涓哄瓧绗︿覆
- inspectType: rest.inspectType !== null && rest.inspectType !== undefined ? String(rest.inspectType) : ''
+ inspectType: activeTab.value,
+ processId: activeTab.value === '1' ? (rest.processId ?? '') : null
})
}
standardDialogVisible.value = true
@@ -621,6 +633,10 @@
const submitStandardForm = () => {
const payload = { ...standardForm.value }
+ payload.inspectType = activeTab.value
+ if (String(payload.inspectType) !== '1') {
+ payload.processId = null
+ }
const isEdit = standardOperationType.value === 'edit'
if (isEdit) {
qualityTestStandardUpdate(payload).then(() => {
diff --git a/src/views/salesManagement/receiptPaymentLedger/index.vue b/src/views/salesManagement/receiptPaymentLedger/index.vue
index 393d9a9..de57294 100644
--- a/src/views/salesManagement/receiptPaymentLedger/index.vue
+++ b/src/views/salesManagement/receiptPaymentLedger/index.vue
@@ -48,13 +48,6 @@
width="200"
/>
<el-table-column
- label="鍥炴閲戦(鍏�)"
- prop="receiptPaymentAmount"
- show-overflow-tooltip
- :formatter="formattedNumber"
- width="200"
- />
- <el-table-column
label="搴旀敹閲戦(鍏�)"
prop="unReceiptPaymentAmount"
show-overflow-tooltip
@@ -106,13 +99,6 @@
<el-table-column
label="鍚堝悓閲戦(鍏�)"
prop="invoiceTotal"
- show-overflow-tooltip
- :formatter="formattedNumber"
- width="200"
- />
- <el-table-column
- label="鍥炴閲戦(鍏�)"
- prop="receiptPaymentAmount"
show-overflow-tooltip
:formatter="formattedNumber"
width="200"
diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index b01ab4d..94283c5 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -1324,7 +1324,7 @@
productOperationType.value = type;
productForm.value = {
taxRate: 0,
- invoiceType: "澧炴櫘绁�"
+ invoiceType: ""
};
proxy.resetForm("productFormRef");
if (type === "edit") {
--
Gitblit v1.9.3