| | |
| | | @click="handleEdit(row = rowForm, OperationType = 1, copyType = 1)">复制</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-tickets" size="mini" :disabled="single" |
| | | @click="handleMove(row = rowForm, OperationType = 4)">下推(器具直接调拨单)</el-button> |
| | | <el-button type="primary" icon="el-icon-tickets" size="mini" |
| | | @click="handlePush(row = rowForm, OperationType = 4)">下推(器具直接调拨单)</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除 |
| | |
| | | :copyType="copyType" @editClose="editClose" v-if="editShow" /> |
| | | </el-dialog> |
| | | <!-- 下推 --> |
| | | <el-dialog title="下推器具直接调拨单" :visible.sync="openMove" width="1480px" append-to-body class="xsckdBox" @close="close"> |
| | | <move :OperationType='4' :propsData='moveData' :HSouceBillType=BillType |
| | | @editClose="moveClose" v-if="moveShow" /> |
| | | <el-dialog title="下推器具直接调拨单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close"> |
| | | <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType |
| | | @editClose="pushClose" v-if="pushShow" /> |
| | | </el-dialog> |
| | | <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body> |
| | | <PrintList :linterid=this.rowForm.hmainid :MyMsg=this.rowForm.hmainid :Type='HModName' |
| | |
| | | import axios from 'axios' |
| | | import RowSettings from '@/views/component/rowSettings' |
| | | import Edit from '@/views/scMould/warehouse/Sc_MouldMoveStockRequestBillEdit' |
| | | import Move from '@/views/scMould/warehouse/Sc_MouldProdMoveBillEdit' |
| | | import Push from '@/views/scMould/warehouse/Sc_MouldProdMoveBillEdit' |
| | | import PrintList from '@/views/component/printList' |
| | | import moment from 'moment'; |
| | | |
| | | export default { |
| | | name: 'Sc_MouldMoveStockRequestBillList', |
| | | components: { RowSettings, Edit, Move,PrintList }, |
| | | components: { RowSettings, Edit, Push,PrintList }, |
| | | props: { |
| | | openPage: { type: String, }, |
| | | HOrgID: { type: String, }, |
| | |
| | | activeSeach: '', |
| | | editShow: false, |
| | | openEdit: false, |
| | | moveShow: false, |
| | | openMove: false, |
| | | moveData:'', |
| | | pushShow: false, |
| | | openPush: false, |
| | | pushData:'', |
| | | totalNameList: [], |
| | | tableShow: true, |
| | | openPrintList: false, |
| | |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow = false |
| | | this.openPush = false |
| | | this.pushShow = false |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | |
| | | this.openEdit = true |
| | | }, |
| | | //打开下推组件弹窗 |
| | | handleMove() { |
| | | if (this.rowList.length > 0) { |
| | | handlePush() { |
| | | if (this.rowList && this.rowList.length > 0) { |
| | | var dataArray = []; |
| | | var HSupTypeID_Temp = this.rowList[0].HSupTypeID |
| | | var HStockInOrgID_Temp = this.rowList[0].HSTOCKORGINID |
| | | for (var i = 0; i < this.rowList.length; i++) { |
| | | if (this.rowList[i].单据状态 != "已审核") { |
| | | this.$modal.msgSuccess("下推失败!所选单据【" + this.rowList[i].单据号 + "】不为已审核状态,不允许下推!") |
| | | this.$modal.msgError("下推失败!所选单据【" + this.rowList[i].单据号 + "】不为已审核状态,不允许下推!") |
| | | return; |
| | | } |
| | | if (this.rowList[i].HQtyMust <= 0) { |
| | | this.$modal.msgSuccess("下推失败!所选单据【" + this.rowList[i].单据号 + "】对应可下推数量必须大于 0 !") |
| | | this.$modal.msgError("下推失败!所选单据【" + this.rowList[i].单据号 + "】对应可下推数量必须大于 0 !") |
| | | return; |
| | | } |
| | | if (this.rowList[i].HSupTypeID != HSupTypeID_Temp) { |
| | | this.$modal.msgSuccess("下推失败!所选单据对应往来类型必须一致!") |
| | | this.$modal.msgError("下推失败!所选单据对应往来类型必须一致!") |
| | | return; |
| | | } |
| | | if (this.rowList[i].HSTOCKORGINID != HStockInOrgID_Temp) { |
| | | this.$modal.msgSuccess("下推失败!所选单据对应调入组织必须一致!") |
| | | this.$modal.msgError("下推失败!所选单据对应调入组织必须一致!") |
| | | return; |
| | | } |
| | | var temp = { |
| | |
| | | var datajson = { |
| | | "data": dataArray |
| | | }; |
| | | this.moveData = JSON.stringify(datajson) |
| | | this.moveShow = true |
| | | this.openMove = true |
| | | this.pushData = JSON.stringify(datajson) |
| | | this.pushShow = true |
| | | this.openPush = true |
| | | } else { |
| | | layer.msg('请选择数据下推!'); |
| | | this.$modal.msgError("请选择数据下推!") |
| | | } |
| | | }, |
| | | //关闭编辑页面 |
| | |
| | | this.getList() |
| | | }, |
| | | //关闭下推页面 |
| | | moveClose(val) { |
| | | pushClose(val) { |
| | | this.open = val |
| | | this.editShow = false |
| | | this.openEdit = val |
| | | this.pushShow = false |
| | | this.openPush = val |
| | | this.clearData() |
| | | this.getList() |
| | | }, |