| | |
| | | |
| | | //此js文件是用来自定义扩展业务代码,可以扩展一些自定义页面或者重新配置生成的代码 |
| | | |
| | | import gridHeader from './extend/AddInboundOrder.vue' |
| | | import gridBody from './extend/inOrderDetail.vue' |
| | | let extension = { |
| | | components: { |
| | | //查询界面扩展组件 |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridHeader: gridHeader, |
| | | gridBody: gridBody, |
| | | gridFooter: '', |
| | | //新建、编辑弹出框扩展组件 |
| | | modelHeader: '', |
| | |
| | | methods: { |
| | | //下面这些方法可以保留也可以删除 |
| | | onInit() { |
| | | |
| | | this.columns.push({ |
| | | field: '操作', |
| | | title: '操作', |
| | | width: 90, |
| | | fixed: 'right', |
| | | align: 'center', |
| | | formatter: (row) => { |
| | | return ( |
| | | '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">查看明细</i>' |
| | | ); |
| | | }, |
| | | click: (row) => { |
| | | this.$refs.gridBody.open(row); |
| | | } |
| | | }); |
| | | |
| | | let addBtn = this.buttons.find(x => x.value == 'Add'); |
| | | if (addBtn) { |
| | | addBtn.onClick = function () { |
| | | this.$refs.gridHeader.open(); |
| | | } |
| | | }; |
| | | let FeedbackInboundCanceERP = this.buttons.find(x => x.value == 'FeedbackInboundCanceERP'); |
| | | if (FeedbackInboundCanceERP) { |
| | | FeedbackInboundCanceERP.onClick = function () { |
| | | this.$confirm("是否确认取消单据","单据取消警告",{ |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | center: true, |
| | | }).then(() => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("请选择数据!"); |
| | | if (rows.length > 1) return this.$error("请选择一条数据!"); |
| | | var param = rows[0].orderNo; |
| | | this.http |
| | | .post("api/InboundOrder/FeedbackInboundCanceERP?orderNo="+param, "数据处理中...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('入库单据取消成功'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | }, |
| | | onInited() { |
| | | //框架初始化配置后 |