From a5a80af9017fdb8d378eb6f682e24dae99d19977 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期五, 15 八月 2025 10:12:09 +0800
Subject: [PATCH] 孔加工工具增加字段
---
src/views/tms/stocktakingBound/modules/ToolsStocktakingBoundModal.vue | 122 ++++++++++++++++++++++------------------
1 files changed, 67 insertions(+), 55 deletions(-)
diff --git a/src/views/tms/stocktakingBound/modules/ToolsStocktakingBoundModal.vue b/src/views/tms/stocktakingBound/modules/ToolsStocktakingBoundModal.vue
index b158f99..28184ab 100644
--- a/src/views/tms/stocktakingBound/modules/ToolsStocktakingBoundModal.vue
+++ b/src/views/tms/stocktakingBound/modules/ToolsStocktakingBoundModal.vue
@@ -17,11 +17,11 @@
:disabled="disableSubmit"></j-dict-select-tag>
</a-form-model-item>
</a-col>
+
+
<a-col :span="12">
- <a-form-model-item v-show="addShow" label="缁忔墜浜�" :labelCol="labelCol" :wrapperCol="wrapperCol"
- prop="handler">
- <j-dict-select-tag dictCode="sys_user,realname,id" placeholder="璇烽�夋嫨缁忔墜浜�" v-model="model.handler"
- :disabled="disableSubmit" />
+ <a-form-model-item label="鐩樼偣鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="stocktakingName">
+ <a-input v-model="model.stocktakingName" placeholder="璇疯緭鍏ョ洏鐐瑰悕绉�"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12">
@@ -31,8 +31,17 @@
</a-form-model-item>
</a-col>
<a-col :span="12">
- <a-form-model-item label="鐩樼偣鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="stocktakingName">
- <a-input v-model="model.stocktakingName" placeholder="璇疯緭鍏ョ洏鐐瑰悕绉�"></a-input>
+ <a-form-model-item label="鐩樼偣鏃堕棿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryTime">
+ <j-date placeholder="璇烽�夋嫨鐩樼偣鏃堕棿" date-format="YYYY-MM-DD HH:mm:ss" v-model="model.inventoryTime"
+ style="width: 100%" />
+ </a-form-model-item>
+ </a-col>
+
+ <a-col :span="12">
+ <a-form-model-item v-show="addShow" label="缁忔墜浜�" :labelCol="labelCol" :wrapperCol="wrapperCol"
+ prop="handler">
+ <j-dict-select-tag dictCode="sys_user,realname,id" placeholder="璇烽�夋嫨缁忔墜浜�" v-model="model.handler"
+ :disabled="disableSubmit" />
</a-form-model-item>
</a-col>
@@ -51,11 +60,12 @@
</a-form-model-item>
</a-col>
<a-col :span="12">
- <a-form-model-item label="鐩樼偣鏃堕棿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryTime">
- <j-date placeholder="璇烽�夋嫨鐩樼偣鏃堕棿" date-format="YYYY-MM-DD HH:mm:ss" v-model="model.inventoryTime"
+ <a-form-model-item v-show="addShow" label="瀹℃牳鏃堕棿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryTime">
+ <j-date placeholder="璇烽�夋嫨瀹℃牳鏃堕棿" date-format="YYYY-MM-DD HH:mm:ss" v-model="model.approvalDate"
style="width: 100%" />
</a-form-model-item>
</a-col>
+
<a-col :span="12">
<a-form-model-item label="澶囨敞" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark">
<a-input v-model="model.remark" placeholder="璇疯緭鍏ュ娉�" type="textarea"></a-input>
@@ -73,7 +83,7 @@
<a-input-number :disabled="disableSubmit" :value="text" v-if="col.dataIndex == 'practicalQuantity'" :min="0"
:max="99999"
@change="(e) => handleChange(e, record.key, col, index)" style="width: 100%;" />
- <a-input-number :value="text" v-if="col.dataIndex == 'differenceValue'" :min="0" :max="99999"
+ <a-input-number :value="text" v-if="col.dataIndex == 'differenceValue'"
:disabled="true" @change="(e) => handleChange(e, record.key, col, index)"
style="width: 100%;" />
<j-dict-select-tag :value="text" v-if="col.dataIndex == 'surplusDeficit'"
@@ -159,57 +169,16 @@
},
{
title: '鍒�鍏风紪鍙�',
- dataIndex: 'toolCode',
+ dataIndex: 'toolId',
align: 'center',
- width: 150
+ width: 180
},
{
title: '宸ュ叿绫诲瀷',
- dataIndex: 'applicationType',
+ dataIndex: 'applicationType_dictText',
align: 'center',
width: 150
- },
-
- {
- title: '涓枃鍚嶇О',
- dataIndex: 'chineseName',
- width: 150,
- align: 'center'
- },
-
- {
- title: '鍨嬪彿/鍥惧彿',
- dataIndex: 'toolModel',
- width: 150,
- align: 'center'
- },
-
- {
- title: '鍒�鍏锋潗鏂�',
- width: 150,
- dataIndex: 'toolMaterial',
- align: 'center'
- },
- {
- title: '闆朵欢鏉愭枡',
- width: 150,
- dataIndex: 'partMaterial',
- align: 'center'
- },
- {
- title: '鍘傚',
- width: 150,
- dataIndex: 'supplierId',
- align: 'center'
-
- },
- {
- title: '瀛樺偍浣嶇疆',
- width: 150,
- dataIndex: 'goodsShelvesId',
- align: 'center'
-
},
{
title: '璐﹂潰搴撳瓨',
@@ -262,6 +231,48 @@
align: 'center',
scopedSlots: { customRender: 'remark' }
},
+ {
+ title: '涓枃鍚嶇О',
+ dataIndex: 'chineseName',
+ width: 150,
+ align: 'center'
+ },
+
+ {
+ title: '鍨嬪彿/鍥惧彿',
+ dataIndex: 'toolModel',
+ width: 150,
+ align: 'center'
+ },
+
+ {
+ title: '鍒�鍏锋潗鏂�',
+ width: 150,
+ dataIndex: 'toolMaterial',
+ align: 'center'
+ },
+ {
+ title: '闆朵欢鏉愭枡',
+ width: 150,
+ dataIndex: 'partMaterial',
+ align: 'center'
+ },
+ {
+ title: '鍘傚',
+ width: 150,
+ dataIndex: 'supplierId',
+ align: 'center'
+
+ },
+ {
+ title: '瀛樺偍浣嶇疆',
+ width: 150,
+ dataIndex: 'goodsShelvesId',
+ align: 'center'
+
+ },
+
+
{
title: '鎿嶄綔',
width: 150,
@@ -316,11 +327,12 @@
this.$bus.$on('selectionRows', (data) => {
for (let i = 0; i < data.length; i++) {
this.dataSource.push({
- toolId: data[i].id,
+ toolId: data[i].toolId,
toolCode: data[i].toolCode,
classifyId: data[i].classifyId,
- applicationType: data[i].applicationType_dictText,
+ applicationType_dictText: data[i].applicationType_dictText,
chineseName: data[i].chineseName,
+ availableQuantity:data[i].availableCount,
toolModel: data[i].toolModel,
material: data[i].material,
toolMaterial: data[i].toolMaterial,
--
Gitblit v1.9.3