| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售币别" prop="HCurName"> |
| | | <el-input v-model="form.HCurName" placeholder="请输入销售币别" disabled /> |
| | | <el-input v-model="form.HCurName" placeholder="请输入销售币别" disabled> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="定金比例%" prop="HEarnestRate" :label-width="100"> |
| | | <el-form-item label="定金比例%" prop="HEarnestRate" label-width="100px"> |
| | | <el-select v-model="form.HEarnestRate" placeholder="请选择定金比例"> |
| | | <el-option |
| | | v-for="(item, index) in [ |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售订单类型" prop="HBillSubType" :label-width="120"> |
| | | <el-form-item label="销售订单类型" prop="HBillSubType" label-width="120px"> |
| | | <el-select v-model="form.HBillSubType" placeholder="请选择销售订单类型"> |
| | | <el-option |
| | | v-for="(item, index) in [ |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="联系人" prop="HSecManagerName"> |
| | | <el-input v-model="form.HSecManagerName" placeholder="请输入联系人"> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | <el-form-item label="联系人" prop="HLinkMan"> |
| | | <el-input v-model="form.HLinkMan" placeholder="请输入联系人"> </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="联系电话" prop="HKeeperName"> |
| | | <el-input v-model="form.HKeeperName" placeholder="请输入联系电话"> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | <el-form-item label="联系电话" prop="HLinkPhone"> |
| | | <el-input v-model="form.HLinkPhone" placeholder="请输入联系电话"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="客户余额" prop="HProjectNumber"> |
| | | <el-form-item prop="HCusBalance"> |
| | | <template slot="label"> |
| | | <el-popover |
| | | placement="top" |
| | | title="提示" |
| | | width="300" |
| | | trigger="hover" |
| | | content="客户余额 = 期初+本期收款(已审核)-本期退款(已审核)-本期出库(已审核)+本期退货(已审核)" |
| | | > |
| | | <div |
| | | slot="reference" |
| | | style="display: flex; align-items: center; white-space: nowrap" |
| | | > |
| | | 客户余额 <i class="el-icon-warning-outline"></i> |
| | | </div> |
| | | </el-popover> |
| | | </template> |
| | | <el-input |
| | | v-model="form.HProjectNumber" |
| | | placeholder="请输入项目代码" |
| | | v-model="form.HCusBalance" |
| | | placeholder="请输入客户余额" |
| | | disabled |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="信用额度" prop="HProjectName"> |
| | | <el-input |
| | | v-model="form.HProjectName" |
| | | placeholder="请输入项目名称" |
| | | disabled |
| | | /> |
| | | <el-form-item label="信用额度" prop="HCreditRating_Now"> |
| | | <el-input v-model="form.HCreditRating_Now" disabled /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="可用额度" prop="HGroupName"> |
| | | <el-input v-model="form.HGroupName" placeholder="请输入班组" disabled> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | <el-form-item prop="HAvailableBalance"> |
| | | <template slot="label"> |
| | | <el-popover |
| | | placement="top" |
| | | title="提示" |
| | | width="300" |
| | | trigger="hover" |
| | | content="可用额度 = 客户余额 + 信用额度 - (本期销售订单总金额 * 定金比例%)" |
| | | > |
| | | <div |
| | | slot="reference" |
| | | style="display: flex; align-items: center; white-space: nowrap" |
| | | > |
| | | 可用额度 <i class="el-icon-warning-outline"></i> |
| | | </div> |
| | | </el-popover> |
| | | </template> |
| | | <el-input v-model="form.HAvailableBalance" disabled> </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="需求金额" prop="HBillMoney"> |
| | | <template slot="label"> |
| | | <el-popover |
| | | placement="top" |
| | | title="提示" |
| | | width="300" |
| | | trigger="hover" |
| | | content="需求金额 = 价税合计 * 定金比例%" |
| | | > |
| | | <div |
| | | slot="reference" |
| | | style="display: flex; align-items: center; white-space: nowrap" |
| | | > |
| | | 需求金额 <i class="el-icon-warning-outline"></i> |
| | | </div> |
| | | </el-popover> |
| | | </template> |
| | | <el-input v-model="form.HBillMoney" placeholder="请输入需求金额"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="需求金额" prop="HWHName"> |
| | | <el-input v-model="form.HWHName" placeholder="请输入出库仓库"> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="组织" prop="HWHName"> |
| | | <el-input v-model="form.HWHName" placeholder="请输入出库仓库"> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | <el-form-item label="组织" prop="HOrgID"> |
| | | <el-select v-model="form.HOrgID" placeholder="请选择组织"> |
| | | <el-option |
| | | v-for="(item, index) in organizationList" |
| | | :key="index" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <span>{{ scope.row.计量单位 }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="实发数量" width="120"> |
| | | <el-table-column align="center" label="仓库" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.仓库" |
| | | :min="1" |
| | | style="width: 90px" |
| | | controls-position="right" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="数量2" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input-number |
| | | v-model="scope.row.HQty" |
| | | :min="1" |
| | | :min="0" |
| | | style="width: 90px" |
| | | controls-position="right" |
| | | ></el-input-number> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="单价" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input-number |
| | | v-model="scope.row.HPrice" |
| | | :min="0" |
| | | style="width: 90px" |
| | | controls-position="right" |
| | | ></el-input-number> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="含税单价" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HTaxPrice }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="税率" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HTaxRate }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="金额" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HPrice * scope.row.HQty }}</span> |
| | | <span>{{ scope.row.HPrice }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="价税合计" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HTaxPrice * scope.row.HQty }}</span> |
| | | <span>{{ scope.row.HTaxMoney }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="发货仓库" width="120"> |
| | | <el-table-column align="center" label="客户规格型号" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.发货仓库" |
| | | placeholder="请输入发货仓库" |
| | | @keyup.native.f7="openDataDialog(2, scope.row)" |
| | | @dblclick.native="openDataDialog(2, scope.row)" |
| | | /> |
| | | <span>{{ scope.row.HPrice * scope.row.规格型号 }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="交货日期" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HTaxPrice * scope.row.HDate }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="备注" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HRemark" placeholder="请输入备注" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="采购数量" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HReqBuyQty }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="申请出库数量" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HReqOutQty }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="当前库存" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HCurrentInventory }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="操作" width="55" fixed="right"> |
| | |
| | | import Material from "@/views/component/material"; |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import moment from "moment"; |
| | | import dayjs from "dayjs"; |
| | | |
| | | export default { |
| | | name: "SellOutBill", |
| | | name: "xsSeOutStockBillEdit", |
| | | components: { Dept, Warehouse, Material, RowSettings }, |
| | | props: { |
| | | OperationType: { type: Number }, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | OperationType2: 1, |
| | | HInterID2: 0, |
| | | CopyType2: 1, |
| | | formShow: false, |
| | | temp: undefined, |
| | | formLoading: true, |
| | |
| | | this.getdata(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy(); |
| | | if (window.parent) { |
| | | } else { |
| | | this.$destroy(); |
| | | } |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .get(this.$baseUrl + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data; //组织列表 |
| | | this.organizationList = response.data.data.map((item) => { |
| | | return { |
| | | label: item.Name, |
| | | value: item.ID, |
| | | }; |
| | | }); //组织列表 |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | }); |
| | | }, |
| | | getdata() { |
| | | console.log(this.copyType, this.OperationType); |
| | | this.HInterID2 = this.$route.query.HInterID || this.linterid || 0; |
| | | this.OperationType2 = this.$route.query.OperationType || this.OperationType || 1; |
| | | this.CopyType2 = this.$route.query.CopyType || this.copyType || -1; |
| | | console.log("传递的参数",this.$route.query.CopyType,this.$route.query.OperationType, this.$route.query.HInterID); |
| | | this.formShow = false; |
| | | this.formLoading = true; |
| | | |
| | | if (this.OperationType == 4) { |
| | | if (this.OperationType2 == 4) { |
| | | this.zzSelDis = true; |
| | | this.handleAdd(); |
| | | var data = this.getUrlVars_JSON(); |
| | | var data = [{ hmainid: this.HInterID2 }]; |
| | | var dataArray = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | // this.getPushSourceBillInit(data[i].hmainid, data[i].hsubid); |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | params: { |
| | | HInterID: data[i].hmainid, |
| | | HSubID: data[i].hsubid, |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | HMoney: dataArray[i].金额.toFixed(2), |
| | | HTaxMoney: dataArray[i].价税合计.toFixed(2), |
| | | HWHID: dataArray[i].HWHID, |
| | | 发货仓库: dataArray[i].HWHName, |
| | | 仓库: dataArray[i].HWHName, |
| | | HRemark: "", |
| | | HQty_Full: "0", |
| | | HQty_Empty: "0", |
| | |
| | | }); |
| | | } |
| | | } else if ( |
| | | (this.OperationType == 1 && this.copyType != 1) || |
| | | (!this.OperationType && !this.copyType) |
| | | (this.OperationType2 == 1 && this.CopyType2 != 1) || |
| | | (!this.OperationType2 && !this.CopyType2) |
| | | ) { |
| | | this.handleAdd(); |
| | | } else if (this.OperationType == 3 || this.copyType == 1) { |
| | | } else if (this.OperationType2 == 3 || this.CopyType2 == 1) { |
| | | this.handleUpdate(); |
| | | } |
| | | }, |
| | |
| | | //根据主内码与子内码获取源单销售订单数据 |
| | | getPushSourceBillInit(HSourceInterID, HSourceEntryID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | params: { |
| | | HInterID: HSourceInterID, |
| | | HSubID: HSourceEntryID, |
| | |
| | | //退出 |
| | | close() { |
| | | this.reset(); |
| | | |
| | | if (!this.OperationType && !this.copyType) { |
| | | if (window.top != window.self) { |
| | | // iframe 页面 调用父页面的函数关闭弹窗 |
| | | window.parent.editGyClose(); |
| | | } else if (!this.OperationType2 && !this.copyType) { |
| | | // this.$router.back() |
| | | window.close(); |
| | | } else { |
| | |
| | | //根据用户获取对应职员、部门、销售主管 |
| | | getCzyglByUser() { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | params: { CurUserName: sessionStorage["HUserName"] }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | this.getHBillNo(); |
| | | let date = new Date(); |
| | | this.form.HDate = moment(date).format("YYYY-MM-DDTHH:mm:ss"); |
| | | if (this.OperationType == 1) { |
| | | if (this.OperationType2 == 1) { |
| | | this.handleAddSysZb(); |
| | | } |
| | | this.$nextTick(() => { |
| | |
| | | }, |
| | | getHBillNo() { |
| | | axios |
| | | .get(this.baseURL + "/WEBSController/GetMaxBillNoAndID_Json", { |
| | | .get(this.$baseUrl + "/WEBSController/GetMaxBillNoAndID_Json", { |
| | | params: { |
| | | HBillType: "1401", |
| | | }, |
| | |
| | | //获取销售出库单对应的条码明细 |
| | | getBarCodeNoteBySellOutBill(rowHmainid) { |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/BarCodeNote", { |
| | | .get(this.$baseUrl + "/Kf_SellOutBill/BarCodeNote", { |
| | | params: { HInterID: rowHmainid }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | //#region 根据客户获取客户余额 |
| | | getCustomerBalance(HCusID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_CusRatingChangeBill/getCustomerBalance", { |
| | | .get(this.$baseUrl + "/Xs_CusRatingChangeBill/getCustomerBalance", { |
| | | params: { HCusID: HCusID, CurUserName: sessionStorage["HUserName"] }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | /** 修改按钮操作 */ |
| | | handleUpdate() { |
| | | this.reset(); |
| | | let rowHmainid = this.linterid; |
| | | console.log(this.linterid); |
| | | let rowHmainid = this.HInterID2; |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/cx", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Edit", { |
| | | params: { HInterID: rowHmainid }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | var result = response.data; |
| | | var data = response.data.data[0]; |
| | | this.form.BillType = data.HSourceBillType; |
| | | this.form = { |
| | | ...{ |
| | | HBillNo: data.单据号, |
| | | HDate: dayjs(data.日期).format("YYYY-MM-DD"), |
| | | HInnerBillNo: data.辅助字段, |
| | | HAddress: data.交货地址, |
| | | HDeptID: data.HDeptID, |
| | | HDeptName: data.部门, |
| | | HCusID: data.HCusID, |
| | | HCusName: data.客户, |
| | | HEmpID: data.HEmpID, |
| | | HEmpName: data.业务员, |
| | | HCurID: data.HCurID, |
| | | HCurName: data.币别, |
| | | HExRate: data.汇率, |
| | | HEarnestRate: data.定金比例, |
| | | HBillSubType: data.HBillSubType, |
| | | HManagerID: data.HManagerID, |
| | | HManagerName: data.主管, |
| | | HSellSID: data.HSellSID, |
| | | HSellSName: data.销售方式, |
| | | HSSID: data.HSSID, |
| | | HSSName: data.结算方式, |
| | | HSSDate: dayjs(data.结算日期).format("YYYY-MM-DD"), |
| | | HPayCusID: data.HPayCusID, |
| | | HPayCusName: data.结算方, |
| | | HLinkMan: data.联系人, |
| | | HExplanation: data.摘要, |
| | | HLinkPhone: data.联系电话, |
| | | HProjectID: data.HProjectID, |
| | | HProjectNumber: data.项目编码, |
| | | HProjectName: data.项目名称, |
| | | HWHID: data.主仓库id, |
| | | HWHName: data.主仓库, |
| | | HProductType: data.产品类型, |
| | | HCreditRating_Now: data.HCreditRating_Now, |
| | | HRemark: data.表头备注, |
| | | HMaker: data.制单人, |
| | | HMakeDate: |
| | | data.制单人 == "" ? "" : dayjs(data.制单日期).format("YYYY-MM-DD"), |
| | | HUpDater: data.修改人, |
| | | HUpDateDate: |
| | | data.修改人 == "" ? "" : dayjs(data.修改日期).format("YYYY-MM-DD"), |
| | | HChecker: data.审核人, |
| | | HCheckDate: |
| | | data.审核人 == "" ? "" : dayjs(data.审核日期).format("YYYY-MM-DD"), |
| | | HCloseMan: data.关闭人, |
| | | HCloseDate: |
| | | data.关闭人 == "" ? "" : dayjs(data.关闭日期).format("YYYY-MM-DD"), |
| | | HDeleteMan: data.作废人, |
| | | HDeleteDate: |
| | | data.作废人 == "" ? "" : dayjs(data.作废日期).format("YYYY-MM-DD"), |
| | | HChangeMan: data.变更人, |
| | | HChangeDate: |
| | | data.变更人 == "" ? "" : dayjs(data.变更日期).format("YYYY-MM-DD"), |
| | | }, |
| | | }; |
| | | if (this.copyType == 1) { |
| | | this.getHBillNo(); |
| | | let date = new Date(); |
| | |
| | | this.form.HCloseDate = data.关闭日期; |
| | | this.form.HDeleteDate = data.作废日期; |
| | | } |
| | | this.form.HBillSubType = data.HBillSubType; |
| | | this.form.HMainSourceInterID = data.HMainSourceInterID; |
| | | this.form.HMainSourceEntryID = data.HMainSourceEntryID; |
| | | this.form.HMainSourceBillType = data.HMainSourceBillType; |
| | | this.form.HMainSourceBillNo = data.HMainSourceBillNo; |
| | | this.form.HEmpName = data.业务员; |
| | | this.form.HEmpID = data.HEmpID; |
| | | this.form.HDeptName = data.部门; |
| | | this.form.HDeptID = data.HDeptID; |
| | | this.form.HManagerName = data.主管; |
| | | this.form.HManagerID = data.HManagerID; |
| | | this.form.HSupName = data.客户; |
| | | this.form.HSupID = data.HSupID; |
| | | this.form.HLinkMan = data.联系人; |
| | | this.form.HLinkPhone = data.联系电话; |
| | | this.form.HSecManagerName = data.发货人; |
| | | this.form.HSecManagerID = data.HSecManagerID; |
| | | this.form.HKeeperName = data.保管员; |
| | | this.form.HKeeperID = data.HKeeperID; |
| | | this.form.HRemark = data.表头备注; |
| | | this.form.HProjectNumber = data.项目编码; |
| | | this.form.HProjectID = data.HProjectID; |
| | | this.form.HProjectName = data.项目名称; |
| | | this.form.HGroupName = data.班组; |
| | | this.form.HGroupID = data.HGroupID; |
| | | this.form.HWHName = data.主表仓库; |
| | | this.form.HWHID = data.HWHID_Main; |
| | | this.form.HConveyCompName = data.运输公司; |
| | | this.form.HConveyCompID = data.HConveyCompID; |
| | | this.form.HConveyTypeName = data.运输方式; |
| | | this.form.HConveyTypeID = data.HConveyTypeID; |
| | | this.form.HConveyMoney = data.HConveyMoney; |
| | | this.form.HCarriage = data.运费; |
| | | this.form.HSTOCKORGID = data.HSTOCKORGID; |
| | | this.form.HOWNERID = data.HOWNERID; |
| | | this.form.HSCWHName = data.主表调出仓库; |
| | | this.form.HSCWHID = data.HSCWHID; |
| | | this.form.HCheckStatusMan = data.核销人; |
| | | this.form.HExplanation = data.摘要; |
| | | this.form.HInnerBillNo = data.内部单据号; |
| | | this.form.HCurName = data.币别; |
| | | this.form.HCurID = data.HCurID; |
| | | this.form.HExRate = data.汇率; |
| | | this.form.HSellSName = data.销售方式; |
| | | this.form.HSellSID = data.HSellSID; |
| | | // this.form.HCusBalance=data |
| | | // this.form.HCreditRating_Now=HConveyMoney |
| | | // this.form.HAvailableBalance=data |
| | | this.form.HPriceType = data.单价类型; |
| | | this.form.HOrgID = data.HOrgID; |
| | | this.getCustomerByCusID(response.data.data[0].HSupID); //根据客户获取联系人,联系人电话 |
| | | this.getBarCodeNoteBySellOutBill(rowHmainid); //获取销售出库单对应的条码明细是否可编辑 |
| | | this.getCustomerByCusID(response.data.data[0].HCusID); //根据客户获取联系人,联系人电话 |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | this.editData.push({ |
| | | HMaterID: result.data[i].HMaterID, |
| | | 物料代码: result.data[i].物料代码, |
| | | 物料名称: result.data[i].物料名称, |
| | | 规格型号: result.data[i].规格型号, |
| | | HUnitID: result.data[i].HUnitID, |
| | | 计量单位: result.data[i].计量单位, |
| | | HQtyMust: result.data[i].应发数量.toFixed(6), |
| | | HQty: result.data[i].数量.toFixed(6), |
| | | HPieceQty: result.data[i].件数.toFixed(0), |
| | | HPrice: result.data[i].单价.toFixed(4), |
| | | HTaxPrice: result.data[i].含税单价.toFixed(4), |
| | | HTaxRate: result.data[i].税率, |
| | | HMoney: (result.data[i].数量 * result.data[i].单价).toFixed(2), |
| | | HTaxMoney: (result.data[i].数量 * result.data[i].含税单价, 2).toFixed(2), |
| | | HWHID: result.data[i].hwhid, |
| | | 发货仓库: result.data[i].发货仓库, |
| | | HRemark: result.data[i].表体备注, |
| | | HQty_Full: result.data[i].满车重量, |
| | | HQty_Empty: result.data[i].空车重量, |
| | | HQty_Back: result.data[i].回车重量, |
| | | HCostPrice: result.data[i].成本单价, |
| | | HCostMoney: result.data[i].成本金额, |
| | | HSalePrice: result.data[i].销售单价, |
| | | HSeOrderInterID: result.data[i].HSeOrderInterID, |
| | | HSeOrderEntryID: result.data[i].HSeOrderEntryID, |
| | | HSeOrderBillNo: result.data[i].销售订单号, |
| | | HSourceInterID: result.data[i].HSourceInterID, |
| | | HSourceEntryID: result.data[i].HSourceEntryID, |
| | | HSourceBillNo: result.data[i].源单单号, |
| | | HSourceBillType: result.data[i].HSourceBillType, |
| | | HRelationQty: result.data[i].关联数量, |
| | | HRelationMoney: result.data[i].关联金额, |
| | | HSPID: result.data[i].HSPID, |
| | | HSPName: result.data[i].仓位, |
| | | HSPGroupID: result.data[i].HSPGroupID, |
| | | HSPGroupName: result.data[i].仓位组, |
| | | HSCWHID: result.data[i].HSCWHID, |
| | | HSCWHName: result.data[i].调出仓库, |
| | | HSCSPID: result.data[i].HSCSPID, |
| | | HSCSPName: result.data[i].调出仓位, |
| | | HBatchNo: result.data[i].批次, |
| | | HPOOrderInterID: result.data[i].采购订单内码, |
| | | HPOOrderEntryID: result.data[i].采购订单子内码, |
| | | HPOOrderBillNo: result.data[i].采购订单号, |
| | | HPropertyID: result.data[i].HPropertyID, |
| | | HPropertyName: result.data[i].辅助属性, |
| | | HSecUnitID: result.data[i].HSecUnitID, |
| | | HSecUnitName: result.data[i].辅助计量单位, |
| | | HSecUnitRate: result.data[i].换算率, |
| | | HEngineNum: result.data[i].发动机号, |
| | | HUnderPanNum: result.data[i].地盘号, |
| | | HLeaveFactCard: result.data[i].出厂证, |
| | | HReqBuyQty: result.data[i].申请采购数量, |
| | | HReqOutQty: result.data[i].申请出库数量, |
| | | HCurrentInventory: result.data[i].当前库存, |
| | | HMaterID: result.data[i]["HMaterID"], |
| | | 物料代码: result.data[i]["物料代码"], |
| | | 物料名称: result.data[i]["物料名称"], |
| | | HOrderLevID: result.data[i]["HOrderLevID"], |
| | | 订单等级代码: result.data[i]["订单等级代码"], |
| | | 订单等级名称: result.data[i]["订单等级名称"], |
| | | 规格型号: result.data[i]["规格型号"], |
| | | HUnitID: result.data[i]["HUnitID"], |
| | | 计量单位: result.data[i]["计量单位"], |
| | | HWHID: result.data[i]["HWhID"], |
| | | 仓库: result.data[i]["子仓库"], |
| | | HQty: result.data[i]["数量"].toFixed(2), |
| | | HPrice: result.data[i]["单价"].toFixed(3), |
| | | HTaxPrice: result.data[i].HTaxPrice.toFixed(3), |
| | | HMoney: result.data[i]["金额"].toFixed(2), |
| | | HDiscountRate: result.data[i]["折扣率"], |
| | | HRelTaxPrice: result.data[i]["实际含税单价"], |
| | | HTaxRate: result.data[i]["税率"], |
| | | HTaxMoney: result.data[i]["税额"], |
| | | HlineTotal: result.data[i]["价税合计"].toFixed(3), |
| | | HlineTotalBB: result.data[i]["本位币价税合计"], |
| | | HisStockGoods: result.data[i]["是否取库存"] == "Y" ? "true" : "false", |
| | | HDate: dayjs(result.data[i]["交货日期"]).format("YYYY-MM-DD"), |
| | | HOutStockQty: result.data[i]["出库数量"], |
| | | HInvoiceQty: result.data[i]["开票数量"], |
| | | HRemark_TL: result.data[i]["投料"], |
| | | HRemark_SJG: result.data[i]["深加工"], |
| | | HRemark: result.data[i]["表体备注"], |
| | | HCusMaterNumber: result.data[i]["客户物料编码"], |
| | | HCusModel: result.data[i]["客户规格型号"], |
| | | HCusMaterName: result.data[i]["客户物料名称"], |
| | | HRelationQty: this.OperationType2 == 2 ? "0" : result.data[i]["关联数量"], |
| | | HRelationQty_SellOutCheck: |
| | | this.OperationType2 == 2 ? "0" : result.data[i]["销售出库审核数量"], |
| | | HRelationMoney_SellOutCheck: |
| | | this.OperationType2 == 2 ? "0" : result.data[i]["销售出库审核金额"], |
| | | HRelationQty_ICMO: |
| | | this.OperationType2 == 2 ? "0" : result.data[i]["生产关联数量"], |
| | | HRelationQty_SellBack: |
| | | this.OperationType2 == 2 ? "0" : result.data[i]["销售退库数量"], |
| | | HRelationQty_SellBackCheck: |
| | | this.OperationType2 == 2 ? "0" : result.data[i]["销售退库审核数量"], |
| | | }); |
| | | } |
| | | if (data.状态 != "创建" && this.copyType != 1) { |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | this.$modal.msgError("接口请求失败! "); |
| | | console.error(error); |
| | | }); |
| | | }, |
| | | //根据客户带出联系人、联系电话 |
| | | getCustomerByCusID(HCusID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | params: { |
| | | HCusID: HCusID, |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | if (response.data.count == 0) { |
| | | this.$modal.msgWarning(response.data.Message); |
| | | return |
| | | } |
| | | this.form.联系人 = response.data.data[0].HLinkMan; |
| | | this.form.联系电话 = response.data.data[0].HLinkPhone; |
| | | // this.form = response.data.data[0] |
| | |
| | | var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1205','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`; |
| | | axios({ |
| | | method: "get", |
| | | url: this.baseURL + "/CommonModel/searchMethod", |
| | | url: this.$baseUrl + "/CommonModel/searchMethod", |
| | | params: { sql: sql, user: sessionStorage["HUserName"], ModRightNameCheck: "" }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | this.OperationType; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Kf_SellOutBill/SaveSellOutBillList", |
| | | url: this.$baseUrl + "/Kf_SellOutBill/SaveSellOutBillList", |
| | | data: { |
| | | msg: sMainSub, |
| | | }, |
| | |
| | | var InterID = form.hmainid || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/AuditKf_SellOutBill", { |
| | | .get(this.$baseUrl + "/Kf_SellOutBill/AuditKf_SellOutBill", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |