From ba15d76ff0ec80ee759913511158d4333f6e6c59 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期五, 29 八月 2025 18:21:22 +0800 Subject: [PATCH] 日常业务问题修改、工具参数查询增加 --- src/views/dnc/base/SyncProcessSpecificationInfoList.vue | 192 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 192 insertions(+), 0 deletions(-) diff --git a/src/views/dnc/base/SyncProcessSpecificationInfoList.vue b/src/views/dnc/base/SyncProcessSpecificationInfoList.vue new file mode 100644 index 0000000..cb5201f --- /dev/null +++ b/src/views/dnc/base/SyncProcessSpecificationInfoList.vue @@ -0,0 +1,192 @@ +<template> + <a-card :bordered="false"> + + <!-- 鏌ヨ鍖哄煙 --> + <div class="table-page-search-wrapper"> + <a-form layout="inline" @keyup.enter.native="searchQuery"> + <a-row :gutter="24"> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="浜у搧鍚嶇О"> + <a-input placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" v-model="queryParam.productName"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="浜у搧浠e彿"> + <a-input placeholder="璇疯緭鍏ヤ骇鍝佷唬鍙�" v-model="queryParam.productCode"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="閮ㄤ欢鍚嶇О"> + <a-input placeholder="璇疯緭鍏ラ儴浠跺悕绉�" v-model="queryParam.partName"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="閮ㄤ欢缂栧彿"> + <a-input placeholder="璇疯緭鍏ラ儴浠剁紪鍙�" v-model="queryParam.partNumber"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> + <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> + <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button> + </span> + </a-col> + + </a-row> + </a-form> + </div> + + <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> + <div class="table-operator"> + </div> + + <!-- table鍖哄煙-begin --> + <div> + <a-table + ref="table" + size="middle" + bordered + rowKey="id" + :columns="columns" + :dataSource="dataSource" + :pagination="ipagination" + :loading="loading" + class="j-table-force-nowrap" + @change="handleTableChange"> + + <span slot="action" slot-scope="text, record"> + <a-popconfirm title="纭畾棰嗗彇鍚�?" @confirm="() => handleInspection(record.id)"> + <a>棰嗗彇</a> + </a-popconfirm> + </span> + + </a-table> + </div> + <!-- table鍖哄煙-end --> + + <!-- 琛ㄥ崟鍖哄煙 --> + <syncProcessSpecificationInfo-modal ref="modalForm" @ok="modalFormOk"></syncProcessSpecificationInfo-modal> + </a-card> +</template> + +<script> + import '@assets/less/TableExpand.less' + import SyncProcessSpecificationInfoModal from './modules/SyncProcessSpecificationInfo/SyncProcessSpecificationInfoModal.vue' + import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import { getAction } from '@api/manage' + + export default { + name: "SyncProcessSpecificationInfoList", + mixins:[JeecgListMixin], + components: { + SyncProcessSpecificationInfoModal + }, + data () { + return { + description: '涓夌淮宸ヨ壓宸ヨ壓瑙勭▼淇℃伅绠$悊椤甸潰', + // 琛ㄥご + columns: [ + { + title: '#', + dataIndex: '', + key:'rowIndex', + width:60, + align:"center", + customRender:function (t,r,index) { + return parseInt(index)+1; + } + }, + { + title: '浜у搧鍚嶇О', + align:"center", + dataIndex: 'productName' + }, + { + title: '浜у搧浠e彿', + align:"center", + dataIndex: 'productCode' + }, + { + title: '閮ㄤ欢鍚嶇О', + align:"center", + dataIndex: 'partName' + }, + { + title: '閮ㄤ欢缂栧彿', + align:"center", + dataIndex: 'partNumber' + }, + { + title: '閮ㄤ欢鐗堟湰', + align:"center", + dataIndex: 'partVersion' + }, + { + title: '宸ヨ壓瑙勭▼缂栧彿', + align:"center", + dataIndex: 'planNumber' + }, + { + title: '宸ヨ壓瑙勭▼鐗堟湰', + align:"center", + dataIndex: 'planVersion' + }, + { + title: '鏄惁棰嗗彇', + align:"center", + dataIndex: 'isReceive_dictText' + }, + { + title: '鍙戝竷鏃堕棿', + align:"center", + dataIndex: 'createTime' + }, + { + title: '鎿嶄綔', + dataIndex: 'action', + align:"center", + scopedSlots: { customRender: 'action' }, + } + ], + url: { + list: "/dnc/home/syncProcessSpecificationInfo", + receiveInspectionOrder:"/dnc/home/receiveTree" + }, + } + }, + computed: { + importExcelUrl: function(){ + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; + } + }, + methods: { + /** + * 棰嗗彇 + * @param id + */ + handleInspection(id) { + var that = this + this.loading = true + getAction(that.url.receiveInspectionOrder, { id }) + .then((res) => { + if (res.success) { + that.$notification.success({ + message: '娑堟伅', + description: res.message + }) + that.loadData() + } else { + that.$notification.warning({ + message: '娑堟伅', + description: res.message + }) + this.loading = false + } + }) + }, + } + } +</script> +<style scoped> + @import '~@assets/less/common.less'; +</style> \ No newline at end of file -- Gitblit v1.9.3