| | |
| | | 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" |
| | | > |
| | |
| | | <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> |
| | |
| | | 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' |
| | |
| | | }, |
| | | }, |
| | | 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) |
| | |
| | | if(this.selectedRowKeys && this.selectedRowKeys.length>0){ |
| | | param['selections'] = this.selectedRowKeys.join(",") |
| | | } |
| | | |
| | | |
| | | |
| | | console.log("导出参数",param) |
| | | downFile(this.url.exportXlsUrl,param).then((data)=>{ |
| | | if (!data) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 单据提交 |
| | | */ |
| | | // handleSubmit: function() { |
| | | // if (!this.url.submit) { |
| | | // this.$message.error('请设置url.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> |