|
|
@@ -166,34 +166,34 @@
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: right;margin-left: 25%">
|
|
|
<el-button @click="yycpzlhandleCancel">放弃</el-button>
|
|
|
- <el-button type="primary" @click="yycpzlhandleConfirm">执行</el-button>
|
|
|
+ <el-button type="primary" @click="yycpzlhandleConfirm" :disabled="!clickedlist">执行</el-button>
|
|
|
</div>
|
|
|
<el-table ref="multipleTable"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- :row-style="{ height: '0px' }"
|
|
|
- :cell-style="{ padding: '0px' }"
|
|
|
- :header-row-style="{ height: '0px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
- @row-click="yyzltableRowClick"
|
|
|
- highlight-current-row="true"
|
|
|
- style="width: 100%;height: 30vh;" border tooltip-effect="dark"
|
|
|
- :data="yyzltableData" row-key="ID">
|
|
|
- <el-table-column align="left" label="工单编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.工单编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="客户编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.客户编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="客户名称" width="120">
|
|
|
- <template v-slot="{ row }"><span>{{ row.客户名称 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="产品编号" width="100">
|
|
|
- <template v-slot="{ row }"><span>{{ row.产品编号 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="产品名称">
|
|
|
- <template v-slot="{ row }"><span>{{ row.产品名称 }}</span></template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ :row-style="{ height: '0px' }"
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
+ :header-row-style="{ height: '0px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ @row-click="yyzltableRowClick"
|
|
|
+ highlight-current-row="true"
|
|
|
+ style="width: 100%;height: 30vh;" border tooltip-effect="dark"
|
|
|
+ :data="yyzltableData" row-key="ID">
|
|
|
+ <el-table-column align="left" label="工单编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.工单编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="客户编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.客户编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="客户名称" width="120">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.客户名称 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="产品编号" width="100">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.产品编号 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="产品名称">
|
|
|
+ <template v-slot="{ row }"><span>{{ row.产品名称 }}</span></template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
@@ -3105,8 +3105,35 @@ const fanganKeyDown = () => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-//引用产品资料【执行】按钮
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
+ 引用产品资料执行按钮
|
|
|
+*/
|
|
|
+
|
|
|
+//默认启用按钮可点击
|
|
|
+const clickedlist = ref(true);
|
|
|
+//存储定时器时间
|
|
|
+let clickTimer = null;
|
|
|
+
|
|
|
const yycpzlhandleConfirm = async () => {
|
|
|
+ //防止重复点击
|
|
|
+ if (!clickedlist.value) {
|
|
|
+ // 如果按钮已经被禁用,则不执行任何操作
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ clickedlist.value = false;
|
|
|
+ // 清除之前的定时器(如果有的话),以避免重复设置
|
|
|
+ if (clickTimer) {
|
|
|
+ clearTimeout(clickTimer);
|
|
|
+ }
|
|
|
+ //设置定时器,在3秒后重新启用按钮
|
|
|
+ clickTimer = setTimeout(() => {
|
|
|
+ clickedlist.value = true;
|
|
|
+ clickTimer = null;
|
|
|
+ }, 3000);
|
|
|
+
|
|
|
_ProductInformationEdit();
|
|
|
};
|
|
|
//引用产品资料->获取产品资料
|