| src/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillList.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/ProductInBill/Kf_ProductInBillList.vue | 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit.vue
@@ -917,7 +917,7 @@ 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); //审核 @@ -1159,26 +1159,26 @@ }, //#endregion //#region 获取最大单据号 get_MAXNum_Task(Type) { const formatDate = this.form.HDate ? new Date(this.form.HDate).toISOString().split('T')[0] : new Date().toISOString().split('T')[0]; var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1201','${formatDate}',0,0,0,'${Type}','${this.form.HDeptID}'`; axios({ method: 'get', url: this.$baseUrl + "/CommonModel/searchMethod", params: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck": "" }, }).then(response => { if (response.data.count == 1) { this.form.HBillNo = response.data.data[0].HBillNo; } else { this.$modal.msgError(response.data.code + response.data.Message); } }).catch(error => { this.$modal.msgError("接口请求失败!"); }); }, // //#region 获取最大单据号 // get_MAXNum_Task(Type) { // const formatDate = this.form.HDate // ? new Date(this.form.HDate).toISOString().split('T')[0] // : new Date().toISOString().split('T')[0]; // var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1201','${formatDate}',0,0,0,'${Type}','${this.form.HDeptID}'`; // axios({ // method: 'get', // url: this.$baseUrl + "/CommonModel/searchMethod", // params: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck": "" }, // }).then(response => { // if (response.data.count == 1) { // this.form.HBillNo = response.data.data[0].HBillNo; // } else { // this.$modal.msgError(response.data.code + response.data.Message); // } // }).catch(error => { // this.$modal.msgError("接口请求失败!"); // }); // }, //#endregion //#region 根据用户获取对应职员、部门、销售主管 src/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillList.vue
@@ -123,6 +123,10 @@ @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button> </el-col> <el-col :span="1.5"> <el-button type="primary" icon="el-icon-Pallet" size="mini" :disabled="single" @click="set_PalletChange">托数变更 </el-button> </el-col> <el-col :span="1.5"> <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single" @click="handleEdit(row = rowForm, OperationType = 1, copyType = 1)">复制</el-button> </el-col> @@ -397,10 +401,58 @@ }).catch(error => { this.$modal.msgError("接口请求失败!"); }); this.queryParams.HOrgID = sessionStorage["OrganizationID"]; const orgId = sessionStorage["OrganizationID"]; this.queryParams.HOrgID = orgId ? Number(orgId) : null; this.$forceUpdate(); }, //#endregion set_PalletChange() { if (!this.rowForm || !this.rowForm.hmainid) { this.$modal.msgError('请先选择一条记录!') return } const rowData = this.rowForm // 使用 rowForm 而不是 rowList const currentPallet = rowData.托数 || 0 // 将"请输入新托数"作为输入框的placeholder this.$prompt(`当前托数:${currentPallet}`, { confirmButtonText: '保存', cancelButtonText: '取消', inputValue: currentPallet, inputType: 'number', inputValidator: (value) => { if (!value) return '请输入托数!' const num = parseInt(value) if (isNaN(num)) return '请输入有效的数字!' if (num.toString() !== value) return '托数不能为小数!' if (num < 0) return '托数必须大于0!' return true } }).then(({ value }) => { const newPallet = parseInt(value) return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', { hmainid: rowData.hmainid, newPallet: newPallet, operator: sessionStorage["HUserName"] }) }).then(response => { if (response.data && response.data.count == 1) { this.$modal.msgSuccess('托数变更成功!') this.getList() } else { this.$modal.msgError('错误:' + (response.data.Message || '保存失败')) } }).catch(error => { if (error !== 'cancel') { this.$modal.msgError('操作失败:' + error.message) } }) }, //#region 重置 resetQuery() { this.sWhere = '' src/views/ProductInBill/Kf_ProductInBillList.vue