From 4dfd11f526b7b4fe578561a9ea4c27a24a88acb4 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期四, 21 八月 2025 09:06:00 +0800 Subject: [PATCH] art: 物料拉动增加发布时间 --- src/views/cms/CuttingInboundList.vue | 81 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/views/cms/CuttingInboundList.vue b/src/views/cms/CuttingInboundList.vue index d66163d..972c824 100644 --- a/src/views/cms/CuttingInboundList.vue +++ b/src/views/cms/CuttingInboundList.vue @@ -21,8 +21,26 @@ dict="sys_user,realname,id,del_flag!=1" /> </a-form-item> - </a-col> - <a-col + </a-col> + <a-col :md="6" :sm="8"> + <a-form-item label="纭浜�"> + <j-search-select-tag + v-model="queryParam.confirmer" + placeholder="璇烽�夋嫨纭浜�" + dict="sys_user,realname,id,del_flag!=1" + /> + </a-form-item> + </a-col> +<!-- <a-col :md="6" :sm="8">--> +<!-- <a-form-item label="鍏ュ簱鏃堕棿">--> +<!-- <j-date--> +<!-- v-model="queryParam.receiveTime"--> +<!-- type="date"--> +<!-- value-format="YYYY-MM-DD"--> +<!-- />--> +<!-- </a-form-item>--> +<!-- </a-col>--> + <a-col :md="6" :sm="8" > @@ -113,6 +131,11 @@ <a>鍒犻櫎</a> </a-popconfirm> </a-menu-item> + <a-menu-item> + <a-popconfirm title="纭畾鎻愪氦鍚�?" @confirm="() => handleSubmit(record.id)"> + <a>鎻愪氦</a> + </a-popconfirm> + </a-menu-item> </a-menu> </a-dropdown> </span> @@ -138,7 +161,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin' import CuttingInboundModal from './modules/CuttingInboundModal' import CuttingInboundDetailList from './CuttingInboundDetailList' - import { downFile } from '@api/manage' + import { downFile, httpAction } from '@api/manage' import Vue from 'vue' import { ACCESS_TOKEN } from '@/store/mutation-types' import store from '@/store' @@ -238,10 +261,13 @@ }, }, methods: { + searchQuery() { + this.loadData(1); + }, searchReset() { - this.queryParam = {} - this.$refs.cuttingInbounDetailList.dataSource = [] - this.loadData(1); + this.queryParam = {} + this.$refs.cuttingInbounDetailList.dataSource = [] + this.loadData(1); }, handleEdit: function (record) { this.$refs.modalForm.edit(record) @@ -289,9 +315,6 @@ if(this.selectedRowKeys && this.selectedRowKeys.length>0){ param['selections'] = this.selectedRowKeys.join(",") } - - - console.log("瀵煎嚭鍙傛暟",param) downFile(this.url.exportXlsUrl,param).then((data)=>{ if (!data) { @@ -382,6 +405,46 @@ } } }, + + /** + * 鍗曟嵁鎻愪氦 + */ + // handleSubmit: function() { + // if (!this.url.submit) { + // this.$message.error('璇疯缃畊rl.submit灞炴��!') + // return + // } + // if (this.selectedRowKeys.length != 1) { + // this.$message.warning('璇烽�夋嫨涓�鏉¤褰曪紒') + // return + // } else { + // var id = this.selectedRowKeys[0] + // let httpurl = this.url.submit + // let method = 'post' + // var params = { id: id } + // + // const that = this + // + // this.$confirm({ + // title: '纭鎻愪氦锛�', + // okText: '纭', + // cancelText: '鍙栨秷', + // onOk() { + // httpAction(httpurl, params, method).then((res) => { + // if (res.success) { + // that.$message.success(res.message) + // that.loadData() + // } else { + // that.$message.warning(res.message) + // } + // }).finally(() => { + // that.loading = false + // + // }) + // } + // }) + // } + // }, } } </script> -- Gitblit v1.9.3