| | |
| | | @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column align="center" label="序号" type="index" width="80" /> |
| | | <el-table-column align="center" label="源单单号" width="120"> |
| | | <!-- <el-table-column align="center" label="源单单号" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HSourceBillNo }}</span> |
| | | </template> |
| | |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HSourceEntryID }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column align="center" label="HMaterID" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HMaterID }}</span> |
| | |
| | | this.getdata() |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy() |
| | | // this.$destroy() |
| | | }, |
| | | methods: { |
| | | //#region 表单数据初始化 |
| | |
| | | ) |
| | | } |
| | | |
| | | if (data.状态 != '创建' && this.copyType != 1) { |
| | | this.$modal.msgError("此条数据不是创建状态,不能修改"); |
| | | this.subDisabled = true |
| | | } |
| | | // if (data.状态 != '创建' && this.copyType != 1) { |
| | | // this.$modal.msgError("此条数据不是创建状态,不能修改"); |
| | | // this.subDisabled = true |
| | | // } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | |
| | |
| | | this.form.HManagerName = deptRow.负责人 |
| | | this.openData = false |
| | | } |
| | | else if (num == 2) { //收料仓库 |
| | | else if (num == 2) { |
| | | console.log(deptRow) //收料仓库 |
| | | this.editData[this.zbIndex].HWHID = deptRow.HItemID; |
| | | this.editData[this.zbIndex].收料仓库 = deptRow.仓库名称; |
| | | this.openData = false |
| | |
| | | if (valid) { |
| | | let fhck = false |
| | | this.editData.map((item, index) => { |
| | | if (!item.发货仓库) { |
| | | if (!item.收料仓库) { |
| | | fhck = true |
| | | this.$modal.msgError("第" + (index + 1) + "行:发货仓库未选择!"); |
| | | this.$modal.msgError("第" + (index + 1) + "行:收料仓库未选择!"); |
| | | } |
| | | }) |
| | | this.$nextTick(() => { |
| | |
| | | if (response.data.count == 1) { |
| | | this.subDisabled = true//设置保存按钮不可用 |
| | | this.$modal.msgSuccess(response.data.Message); |
| | | this.get_MAXNum_Task(1);//设置流水号增加 |
| | | // this.get_MAXNum_Task(1);//设置流水号增加 |
| | | if (response.data.Verify == "Y") //自动审核 |
| | | { |
| | | this.set_CheckBill(0, this.form); //审核 |
| | |
| | | HMoney: 0, |
| | | HTaxMoney: 0, |
| | | HWHID: 0, |
| | | 发货仓库: '', |
| | | 收料仓库: '', |
| | | HRemark: '', |
| | | HQty_Full: 0, |
| | | HQty_Empty: 0, |
| | |
| | | HSalePrice: 0, |
| | | HSeOrderInterID: 741, |
| | | HSeOrderEntryID: 18, |
| | | HSeOrderBillNo: 'XSFH00000747', |
| | | HSourceInterID: 741, |
| | | HSourceEntryID: 18, |
| | | HSourceBillNo: 'XSFH00000747', |
| | | HSeOrderBillNo: '', |
| | | HSourceInterID: 0, |
| | | HSourceEntryID: 0, |
| | | HSourceBillNo: '', |
| | | HSourceBillType: 1402, |
| | | HRelationQty: 0, |
| | | HRelationMoney: 0, |
| | |
| | | getHBillNo() { |
| | | axios.get(this.baseURL + "/WEBSController/GetMaxBillNoAndID_Json", { |
| | | params: { |
| | | HBillType: '1201' |
| | | HBillType: '1202' |
| | | } |
| | | }).then(response => { |
| | | this.form.HBillNo = response.data.data[0].HBillNo |
| | |
| | | |
| | | //#region 获取最大单据号 |
| | | get_MAXNum_Task(Type) { |
| | | var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1201','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`; |
| | | console.log(dayjs(this.form.HDate).format("YYYY-MM-DD")) |
| | | var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1202','${dayjs(this.form.HDate).format("YYYY-MM-DD")}',0,0,0,'${Type}','${this.form.HDeptID}'`; |
| | | axios({ |
| | | method: 'get', |
| | | url: this.baseURL + "/CommonModel/searchMethod", |