| | |
| | | ENV = 'production' |
| | | |
| | | # 智云迈思L-MOM管理系统/生产环境 |
| | | VUE_APP_BASE_API = 'http://47.96.97.237/API/' |
| | | # VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/' |
| | | # VUE_APP_BASE_API = 'http://47.96.97.237/API/' |
| | | # 四维尔 生产环境 |
| | | VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/' |
| | | # 路由懒加载 |
| | | VUE_CLI_BABEL_TRANSPILE_MODULES = true |
| | |
| | | this.getdata() |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy() |
| | | // 下面的代码会导致页面崩溃,先注释掉 |
| | | // this.$destroy() |
| | | }, |
| | | methods: { |
| | | //#region 表单数据初始化 |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="开始日期"> |
| | | <el-date-picker v-model="query.HBeginDate" type="date" placeholder="开始日期" style="width:160px" :disabled="timeCycleDisabled" value-formate="yyyy-mm-dd" format="yyyy-mm-dd"/> |
| | | <el-date-picker v-model="query.HBeginDate" type="date" placeholder="开始日期" style="width:160px" :disabled="timeCycleDisabled" value-formate="yyyy-MM-dd" format="yyyy-MM-dd"/> |
| | | </el-form-item> |
| | | <el-form-item label="结束日期"> |
| | | <el-date-picker v-model="query.HEndDate" type="date" placeholder="结束日期" style="width:160px" :disabled="timeCycleDisabled" value-format="yyyy-MM-dd" format="yyyy-MM-dd"/> |
| | |
| | | //import FbStepFoldinBillEdit from './fbStepFoldinBillEdit' |
| | | import FbStepFoldinBillEdit from '@/views/FbStepFoldOutBillList/fbStepFoldOutBillListEdit' |
| | | import BarCodeDetail from '@/views/component/BarCodeDetail' |
| | | import dayjs from 'dayjs'; |
| | | |
| | | |
| | | export default { |
| | |
| | | const yyyy = d.getFullYear(); |
| | | const mm = String(d.getMonth() + 1).padStart(2, '0'); |
| | | const dd = String(d.getDate()).padStart(2, '0'); |
| | | |
| | | return `${yyyy}-${mm}-${dd}`; |
| | | }, |
| | | onTimeCycleChange() { |
| | |
| | | if (q.ColName2 && q.Comparator2 && q.Comparator2 !== '0' && q.ColContent2) |
| | | sWhereParts.push(buildComparator(q.ColName2, q.Comparator2, q.ColContent2)); |
| | | |
| | | if (q.HBeginDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) >= '${q.HBeginDate}'`); |
| | | if (q.HEndDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) <= '${q.HEndDate}'`); |
| | | if (q.HBeginDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) >= '${dayjs(q.HBeginDate).format("YYYY-MM-DD")}'`); |
| | | if (q.HEndDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) <= '${dayjs(q.HEndDate).format("YYYY-MM-DD")}'`); |
| | | if (q.HBillNo) sWhereParts.push(` and 单据号 like '%${q.HBillNo}%'`); |
| | | if (q.HDeptID) sWhereParts.push(` and 部门 like '%${q.HDeptID}%'`); |
| | | if (q.MaterialCode) sWhereParts.push(` and 物料代码 like '%${q.MaterialCode}%'`); |
| | |
| | | this.getdata() |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy() |
| | | // 会导致页面崩溃 先注释掉 |
| | | // this.$destroy() |
| | | }, |
| | | methods: { |
| | | //#region 表单数据初始化 |
| | |
| | | @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 表单数据初始化 |
| | |
| | | @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> |
| | |
| | | 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, |
| | |
| | | <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"> |
| | | <span>{{ scope.row.HQtyMust }}</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-number v-model="scope.row.HQty" :min="0" style="width: 90px;" |
| | | controls-position="right"></el-input-number> |
| | |
| | | , "规格型号": dataArray[i].规格型号 |
| | | , "HUnitID": dataArray[i].HUnitID |
| | | , "计量单位": dataArray[i].计量单位 |
| | | , "HQtyMust": dataArray[i].数量.toFixed(6) |
| | | , "HQtyMust": dataArray[i].应发数量.toFixed(6) |
| | | , "HQty": dataArray[i].数量.toFixed(6) |
| | | , "HPieceQty": "0" |
| | | , "HPrice": dataArray[i].单价.toFixed(4) |
| | |
| | | , "规格型号": result.data[i].规格型号 |
| | | , "HUnitID": result.data[i].HUnitID |
| | | , "计量单位": result.data[i].计量单位 |
| | | , "HQtyMust": result.data[i].应收数量 |
| | | , "HQty": result.data[i].实收数量 |
| | | , "HQtyMust": result.data[i].应发数量 |
| | | , "HQty": result.data[i].数量 |
| | | , "HRemark": result.data[i].表体备注 |
| | | , "HPrice": result.data[i].单价 |
| | | , "HMoney": result.data[i].金额 |
| | |
| | | "规格型号": result.data[i].规格型号, |
| | | "HUnitID": result.data[i].HUnitID, |
| | | "计量单位": result.data[i].计量单位, |
| | | "HQtyMust": result.data[i].应收数量, |
| | | "HQty": result.data[i].实收数量, |
| | | "HQtyMust": result.data[i].应发数量, |
| | | "HQty": result.data[i].数量, |
| | | "HRemark": (result.data[i].表体备注 || "") + " (复制)", |
| | | "HPrice": result.data[i].单价, |
| | | "HMoney": result.data[i].金额, |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="发货仓库" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.计量单位 }}</span> |
| | | <span>{{ scope.row.发货仓库 }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="收货仓库" width="120"> |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" @click="get_BarCodeDetail">条码明细</el-button> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-printer" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="get_BarCodeDetail" |
| | | >条码明细</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | <div class="tableBox" v-loading="loading"> |
| | |
| | | <!-- <div>111</div> --> |
| | | </el-dialog> |
| | | <!-- 条码明细 --> |
| | | <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail"/> |
| | | <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import Edit from "@/views/sell/sellOut/sellOutBillEdit"; |
| | | import PrintList from "@/views/component/printList"; |
| | | import BarCodeDetail from '@/views/component/BarCodeDetail' //条码明细组件 |
| | | import BarCodeDetail from "@/views/component/BarCodeDetail"; //条码明细组件 |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | name: "SellOutBill", |
| | | components: { RowSettings, Edit, PrintList,BarCodeDetail }, |
| | | components: { RowSettings, Edit, PrintList, BarCodeDetail }, |
| | | data() { |
| | | return { |
| | | activeSeach: "", |
| | |
| | | tableShow: true, |
| | | openPrintList: false, |
| | | printListShow: false, |
| | | barCodeDetailShow: false, //条码明细组件容器显示标记 |
| | | barCodeDetailShow: false, //条码明细组件容器显示标记 |
| | | openBtnHide: false, |
| | | btnHideShow: false, |
| | | rowHideShow: false, |
| | |
| | | .confirm("确认要删除吗,删除后不能恢复") |
| | | .then(() => { |
| | | if (this.rowForm.状态 == "创建") { |
| | | this.loading = true; |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/DeltetSellOutBill", { |
| | | params: { |
| | |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | this.$modal.msgSuccess(response.data.Message); |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("此条数据不是创建状态,无法删除!"); |
| | |
| | | // this.$message.warning('请选择一行数据查看条码明细!') |
| | | // return |
| | | // } |
| | | this.barCodeDetailShow = true |
| | | this.barCodeDetailShow = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.barcodeDetail.open(this.rowForm) |
| | | }) |
| | | }, |
| | | this.$refs.barcodeDetail.open(this.rowForm); |
| | | }); |
| | | }, |
| | | //#endregion |
| | | |
| | | |
| | | //#region 获取公司名,根据公司进行定制化开发 |
| | | defaintOperationByCompanyName() { |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "Cg_POInStockBill/DeltetPOInStockBill", { |
| | | .get(this.baseURL + "Xs_SeOrderBill/DropXs_SeOrderBill", { |
| | | params: { |
| | | HInter: this.rowForm.hmainid.toString(), |
| | | HsupId: this.rowForm.HsupId, |
| | | HQty: this.rowForm.HQty, |
| | | HSourceInterID: this.rowForm.HSourceInterID, |
| | | HSourceEntryID: this.rowForm.HSourceEntryID, |
| | | HInterID: this.rowForm.hmainid.toString(), |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="单价" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.HTaxPrice }}</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.HTaxRate }}</span> |
| | | <span>{{ scope.row.HTaxMoney }}</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 * 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.HQty }}</span> |
| | | <span>{{ scope.row.HTaxPrice * scope.row.HDate }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="备注" width="120"> |