From e2105dc94d2f03070398114ea47fba8f9105dee8 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期三, 05 三月 2025 10:57:28 +0800
Subject: [PATCH] art: 删除Card标签 title信息
---
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue | 150 ++++++++++++++++++-------------------------------
1 files changed, 56 insertions(+), 94 deletions(-)
diff --git a/src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue b/src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue
index a4b66cf..38dd45a 100644
--- a/src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue
+++ b/src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue
@@ -146,11 +146,12 @@
<div :key="col.dataIndex">
<a-input-number
:value="text"
- v-if="col.dataIndex == 'calibrationItemResult'"
+ v-if="col.dataIndex == 'actualValue'"
:min="0"
:max="20000000"
@change="(e)=>handleChange(e, record.key, col, index,record)"
style="width: 100%"
+ :disabled="buttonDistable"
/>
</div>
</template>
@@ -166,7 +167,10 @@
class="table-operator"
style="margin:-16px"
>
- <equipment-calibration-order-report-drawer-list :calibrationOrderId='calibrationOrderId' />
+ <equipment-calibration-order-report-drawer-list
+ :buttonDistable='buttonDistable'
+ :calibrationOrderId='calibrationOrderId'
+ />
</div>
</a-tab-pane>
</a-tabs>
@@ -223,6 +227,18 @@
},
data() {
return {
+ disableMixinCreated:true,
+ ipagination:{
+ current: 1,
+ pageSize: 5,
+ pageSizeOptions: ['5', '10', '50'],
+ showTotal: (total, range) => {
+ return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
+ },
+ showQuickJumper: true,
+ showSizeChanger: true,
+ total: 0
+ },
title: "妫�瀹氬伐鍗曟墽琛�",
visible: false,
maskClosable: true,
@@ -244,67 +260,40 @@
sm: { span: 16 },
},
columns: [
- {
- title: '#',
- dataIndex: '',
- key: 'rowIndex',
- align: 'center',
- width: 60,
- customRender: function (t, r, index) {
- return parseInt(index) + 1
- }
- },
- {
- title: '绮惧害鍙傛暟缂栫爜',
- align: 'center',
- dataIndex: 'num',
- },
- {
- title: '绮惧害鍙傛暟鍚嶇О',
- align: 'center',
- dataIndex: 'name',
- },
- {
- title: '璁¢噺鍗曚綅',
- align: 'center',
- dataIndex: 'unitName',
- },
- {
- title: '涓嬮檺鍊�',
- align: 'center',
- dataIndex: 'lowerLimit',
- },
- {
- title: '涓婇檺鍊�',
- align: 'center',
- dataIndex: 'upperLimit',
- },
- {
- title: '娴嬪畾鍊�',
- align: 'center',
- dataIndex: 'actualValue',
- },
- {
- title: '瀹為檯娴嬪畾鍊�',
- align: 'center',
- dataIndex: 'calibrationItemResult',
- scopedSlots: { customRender: 'calibrationItemResult' },
- width: 160,
- },
- // {
- // title: '鍒ゅ畾缁撴灉',
- // align: 'center',
- // dataIndex: 'judgmentResultName',
- // class: "notshow"
- // },
- {
- title: '鍒ゅ畾缁撴灉',
- align: 'center',
- dataIndex: 'judgmentResult',
- },
+ {
+ title: '#',
+ dataIndex:'sort',
+ width:100,
+ align:"center",
+ },
+ {
+ title:'妫�楠岄」鐩悕绉�',
+ align:"center",
+ dataIndex: 'name',
+ width:300
+ },
+ {
+ title:'浣嶇疆',
+ align:"center",
+ dataIndex: 'precisionParametersUda1',
+ width:300
+ },
+ {
+ title:'鍏佸樊锛坢m锛�',
+ align:"center",
+ dataIndex: 'tolerance',
+ width:300
+ },
+ {
+ title:'瀹炴祴鍊�',
+ align:"center",
+ dataIndex: 'actualValue',
+ scopedSlots: { customRender: 'actualValue' },
+ width:300
+ },
],
url: {
- list: "/eam/calibrationOrderDetail/getCalibrationOrderDetailList",
+ list: "/eam/calibrationOrder/listByMainId",
report: "/eam/calibrationOrder/report",
save: "/eam/calibrationOrderDetail/save",
},
@@ -324,37 +313,7 @@
this.dataSource = []
this.visible = true;
this.queryParam.calibrationOrderId = record.id
- this.loadData1(1)
- },
-
- loadData1(arg) {
- if (!this.url.list) {
- this.$message.error("璇疯缃畊rl.list灞炴��!")
- return
- }
- //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
- if (arg === 1) {
- this.ipagination.current = 1;
- }
- var params = this.getQueryParams();//鏌ヨ鏉′欢
- this.loading = true;
- getAction(this.url.list, params).then((res) => {
- if (res.success) {
- this.dataSource = res.result.records || res.result;
- if (res.result.total) {
- this.ipagination.total = res.result.total;
- } else {
- this.ipagination.total = 0;
- }
- } else {
- this.$message.warning(res.message)
- }
- }).finally(() => {
- this.loading = false
- })
- },
-
- loadData() {
+ this.loadData(1)
},
getBackground() {
return "background-color:rgba(127, 127, 127,0.08)";
@@ -478,6 +437,9 @@
}
}
+ if(column.dataIndex == 'actualValue'){
+ target[column.dataIndex] = value;
+ }
//鏄剧ず甯﹁繃鏉ョ殑鏁版嵁
that.dataSource = temp;
}
@@ -489,8 +451,8 @@
let formData = Object.assign(this.model);
for (let i = 0; i < that.dataSource.length; i++) {
let o = this.dataSource[i]
- if (o.calibrationItemResult == null || o.calibrationItemResult == '') {
- that.$message.warning('璇疯緭鍏ユ瀹氱粨鏋滐紒')
+ if (o.actualValue == null || o.actualValue == '') {
+ that.$message.warning('璇疯緭鍏ュ簭鍙蜂负'+o.sort+'妫�楠岄」鐨勫疄娴嬪��')
that.confirmLoading = false;
return
}
--
Gitblit v1.9.3