添加 仓位 打印库位码功能
其他出库单 添加辅助属性 选择
| New file |
| | |
| | | { |
| | | "Version":"6.8.2.2", |
| | | "Title":"1a.ç®åè¡¨æ ¼", |
| | | "Author":"éæµªæ¥è¡¨è½¯ä»¶", |
| | | "Description":"æ¼ç¤ºä¸ä¸ªæåºæ¬çå表æ¥è¡¨ã", |
| | | "Font":{ |
| | | "Name":"å®ä½", |
| | | "Size":90000, |
| | | "Weight":400, |
| | | "Charset":134 |
| | | }, |
| | | "Printer":{ |
| | | "Size":256, |
| | | "Width":9, |
| | | "Height":6, |
| | | "LeftMargin":0, |
| | | "TopMargin":0, |
| | | "RightMargin":0, |
| | | "BottomMargin":0 |
| | | }, |
| | | "DetailGrid":{ |
| | | "CenterView":true, |
| | | "PrintAdaptMethod":"ResizeToFit", |
| | | "Recordset":{ |
| | | "ConnectionString":"xml", |
| | | "QuerySQL":"éå®åºåºå.txt", |
| | | "Field":[ |
| | | { |
| | | "Name":"æ¡ç ç¼å·" |
| | | } |
| | | ] |
| | | }, |
| | | "Column":[ |
| | | { |
| | | "Name":"åæ®å·", |
| | | "Width":8.78417 |
| | | } |
| | | ], |
| | | "ColumnContent":{ |
| | | "Height":3.41313, |
| | | "ColumnContentCell":[ |
| | | { |
| | | "Column":"åæ®å·", |
| | | "FreeCell":true, |
| | | "Control":[ |
| | | { |
| | | "Type":"StaticBox", |
| | | "Name":"StaticBox1", |
| | | "Left":0.396875, |
| | | "Top":0.211667, |
| | | "Width":8.20208, |
| | | "Height":2.98979 |
| | | }, |
| | | { |
| | | "Type":"Barcode", |
| | | "Name":"Barcode1", |
| | | "Left":0.211667, |
| | | "Top":0.396875, |
| | | "Width":4.39208, |
| | | "Height":2.59292, |
| | | "BarcodeType":"QRCode", |
| | | "Text":"[#æ¡ç ç¼å·#]" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | "ColumnTitle":{ |
| | | "BackColor":"C0C0C0", |
| | | "Height":0, |
| | | "Font":{ |
| | | "Name":"å®ä½", |
| | | "Size":90000, |
| | | "Bold":true, |
| | | "Charset":134 |
| | | }, |
| | | "RepeatStyle":"OnPage", |
| | | "ColumnTitleCell":[ |
| | | { |
| | | "GroupTitle":false, |
| | | "Column":"åæ®å·", |
| | | "BackColor":"FFFFFF", |
| | | "TextAlign":"MiddleCenter" |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | "ReportHeader":[ |
| | | { |
| | | "Height":0 |
| | | } |
| | | ] |
| | | } |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="è¾
å©å±æ§" width="120"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.è¾
å©å±æ§ }}</span> |
| | | <el-input v-model="scope.row.è¾
å©å±æ§" placeholder="请è¾å
¥è¾
å©å±æ§" @keyup.native.f7="openDataDialog(5, scope.row)" |
| | | @dblclick.native="openDataDialog(5, scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="HAuxPropID" width="120"> |
| | |
| | | <Warehouse @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="warehouseShow" /> |
| | | <!-- ç©æ --> |
| | | <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="materialShow" /> |
| | | <GyProperty |
| | | @deptEmitDb="dbEmitData" |
| | | @deptEmit="emitData" |
| | | :openPage="HModName" |
| | | v-if="PropertyShow" |
| | | /> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="deptClickSub">ç¡® å®</el-button> |
| | | <el-button @click="deptClose">å æ¶</el-button> |
| | |
| | | import Dept from '@/views/component/dept' |
| | | import Warehouse from '@/views/component/warehouse' |
| | | import Material from '@/views/component/material' |
| | | import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue"; |
| | | |
| | | export default { |
| | | name: 'OtherOutBillEdit', |
| | | components: { Dept, Warehouse, Material, RowSettings }, |
| | | components: { Dept, Warehouse, Material, RowSettings,GyProperty, }, |
| | | props: { |
| | | OperationType: { type: Number, }, |
| | | linterid: { type: Number, }, |
| | |
| | | warehouseShow: false, //ä»åºæ°æ®ç»ä»¶æ¾ç¤ºæ è®° |
| | | materialShow: false, //ç©ææ°æ®ç»ä»¶æ¾ç¤ºæ è®° |
| | | stockPlaceShow: false, //ä»ä½æ°æ®ç»ä»¶æ¾ç¤ºæ è®° |
| | | PropertyShow: false, //è¾
å©å±æ§æ°æ®æ°ç»æ¾ç¤ºæ è®° |
| | | deptform: {}, //å¼¹çªé䏿°æ® |
| | | |
| | | temp: undefined, //临æ¶åé |
| | |
| | | zbIndex: null, |
| | | zbSelForm: {}, //å表é䏿°æ®,ç¨äºå表å¤å¶ãä¸ç§»ãä¸ç§»çæä½ |
| | | zbRow: null, |
| | | |
| | | HModName: "Kf_OtherOutBillEdit", |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.dialogTitle = 'ä»ä½å表' |
| | | this.stockPlaceShow = true |
| | | this.openData = true |
| | | }else if(num == 5) { |
| | | this.dialogTitle = 'è¾
å©å±æ§å表' |
| | | this.PropertyShow = true |
| | | this.openData = true |
| | | } |
| | | }, |
| | | //#region å°æ°æ®å¼¹çªå
¨é¨åæ¶å è½½ |
| | |
| | | |
| | | //#region å¼¹çªæ°æ®åå»è¿å表åèµå¼äºä»¶ |
| | | dbEmitData(deptRow, num) { |
| | | console.log(num) |
| | | if (num == 1) { |
| | | this.form.HDeptName = deptRow.é¨é¨åç§° //é¨é¨ |
| | | this.form.HDeptID = deptRow.HItemID |
| | |
| | | this.editData[this.zbIndex].HTaxRate = deptRow.é»è®¤ç¨ç |
| | | this.openData = false |
| | | } |
| | | else if (num == "gyProperty") { |
| | | this.editData[this.zbIndex].HPropertyID = deptRow.HItemID; |
| | | this.editData[this.zbIndex]["è¾
å©å±æ§"] = deptRow["è¾
å©å±æ§åç§°"]; |
| | | |
| | | this.propertyShow = false; |
| | | this.openData = false; |
| | | } |
| | | }, |
| | | //#endregion |
| | | |
| | |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and ä»åºåç§° like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | if (this.queryParams.HOrgID) { |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"; |
| | | } |
| | | // if (this.queryParams.HOrgID) { |
| | | // this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"; |
| | | // } |
| | | // this.sWhere += this.addSWhereByOpenType() |
| | | // this.sWhere += this.getOrgIDByUser() |
| | | this.searchOpen = false; |
| | |
| | | <template> |
| | | <div style="padding: 10px;position: relative"> |
| | | <div style="padding: 10px; position: relative"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | |
| | | </el-collapse> |
| | | </el-form> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="get_PrintReport" |
| | | id="btn-printer" |
| | | >åºä½ç æå°</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | /> |
| | | </el-dialog> |
| | | </div> |
| | | <el-dialog |
| | | title="æå°æ¨¡æ¿éæ©" |
| | | :visible.sync="openPrintList" |
| | | width="800px" |
| | | append-to-body |
| | | > |
| | | <PrintList |
| | | :linterid="encodeURI(rowSel.toString())" |
| | | :MyMsg="rowSel.toString()" |
| | | Type="HGyStockPlaceBarCode" |
| | | HModName="HGyStockPlaceBarCode" |
| | | @rowEditClose="rowSetClose" |
| | | v-if="printListShow" |
| | | /> |
| | | <!-- <div>111</div> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import Edit from "@/views/basic/gyStockPlace/gyStockPlaceEdit"; |
| | | import GyStockPlace from "@/views/basic/gyStockPlace/gyStockPlace"; |
| | | import PrintList from "@/views/component/printList"; |
| | | |
| | | export default { |
| | | name: "GyStockPlace", |
| | | components: { RowSettings, Edit, GyStockPlace }, |
| | | components: { RowSettings, Edit, GyStockPlace, PrintList }, |
| | | props: { |
| | | openPage: { type: String }, |
| | | }, |
| | | data() { |
| | | return { |
| | | rowSel: [], |
| | | danganSelList: [], |
| | | editRef: null, |
| | | activeSeach: "", |
| | | HModName: "Gy_Warehouse", |
| | | HModName: "Gy_StockPlace", |
| | | editShow: false, |
| | | openEdit: false, |
| | | totalNameList: [], |
| | |
| | | } |
| | | } catch (err) { |
| | | this.$modal.msgError(`æ¥å£è¯·æ±å¤±è´¥: ${err}`); |
| | | } |
| | | }, |
| | | get_PrintReport() { |
| | | if (this.danganSelList.length == 0) { |
| | | this.$modal.msgError("è¯·éæ©æ°æ®"); |
| | | } else { |
| | | this.rowSel = []; |
| | | for (var i = 0; i < this.danganSelList.length; i++) { |
| | | this.rowSel.push(`'${this.danganSelList[i]['æ¡ç ç¼å·'].toString()}'`); |
| | | } |
| | | this.printListShow = true; |
| | | this.openPrintList = true; |
| | | // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", { |
| | | // params: { HInterID: this.rowForm.hmainid }, |
| | | // }) |
| | | // .then((response) => { |
| | | // var result = response.data; |
| | | // if (result.count == 1) { |
| | | // this.printListShow = true; |
| | | // this.openPrintList = true; |
| | | // } else { |
| | | // this.$modal.msgError(result.code + result.Message); |
| | | // } |
| | | // }) |
| | | // .catch((error) => { |
| | | // this.$modal.msgError("æ¥å£è¯·æ±å¤±è´¥!"); |
| | | // }); |
| | | } |
| | | }, |
| | | getSummaries(param) { |
| | |
| | | }, |
| | | //éä¸è¡é«äº®æ ·å¼ |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | if (this.ids.includes(row.HItemID)) { |
| | | return { background: "#ecf5ff" }; |
| | | } |
| | | }, |
| | |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | console.log(selection) |
| | | this.danganSelList = selection; |
| | | |
| | | // this.rowForm = {} |
| | | if (this.openPage) { |
| | | //å表åé |
| | |
| | | }, |
| | | //æå¼ä¿®æ¹ç»ä»¶å¼¹çª |
| | | handleEdit(row) { |
| | | this.rowForm = row |
| | | this.rowForm = row; |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | |
| | | sql = "select * from h_v_IF_BarCodeBillList where hmainid in(" + this.handleMessage.linterid.toString() + ") order by hmainid desc" |
| | | }else if (this.$route.query.Type == 'HPOInStockBill') { |
| | | sql = "select * from h_v_Sc_PrintMouldProdOutBillList where hmainid=" + this.handleMessage.linterid.toString()+ " order by hmainid" |
| | | }else if(this.$route.query.Type == 'HGyStockPlaceBarCode') { |
| | | let condition = decodeURI(this.handleMessage.linterid.toString()) |
| | | console.log(condition) |
| | | sql = "select * from h_v_IF_StockPlaceList where æ¡ç ç¼å· in (" + condition + ") order by HItemID" |
| | | } |
| | | axios.get(this.baseURL + '/CommonModel/searchMethod', { |
| | | params: { |
| | |
| | | <el-col :span="6"> |
| | | <el-form-item label="éåå·" prop="HSourceBillNo"> |
| | | <el-input v-model="form.HSourceBillNo" placeholder="请è¾å
¥éåå·" disabled> |
| | | <el-button slot="append" icon="el-icon-search" @click="openDataDialog(openNum)"></el-button> |
| | | <el-button class="input-search-btn" slot="append" icon="el-icon-search" @click="openDataDialog(openNum)"></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | show-overflow-tooltip> |
| | | <template slot-scope="scope">{{ scope.row.HMaterModel }}</template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column align="center" label="æ°é" prop="HQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.HQty" :min="0" controls-position="right" |
| | | style="width: 100%;" @change="editMainTable(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="æå°å
è£
æ°" prop="HMinQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.HMinQty" :min="0" controls-position="right" |
| | | style="width: 100%;" @change="editMainTable(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="ç®±æ°" prop="HBQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope">{{ scope.row.HBQty }}</template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="客æ·è§æ ¼åå·" prop="HCusModel" width="120" |
| | | show-overflow-tooltip> |
| | | <template slot-scope="scope"><el-input v-model="scope.row.HCusModel" /></template> |
| | |
| | | <el-table-column align="center" label="计åè·è¸ªå·" prop="HMTONo" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"><el-input v-model="scope.row.HMTONo" /></template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="æ°é" prop="HQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.HQty" :min="0" controls-position="right" |
| | | style="width: 100%;" @change="editMainTable(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="æå°å
è£
æ°" prop="HMinQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.HMinQty" :min="0" controls-position="right" |
| | | style="width: 100%;" @change="editMainTable(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="ç®±æ°" prop="HBQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope">{{ scope.row.HBQty }}</template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column align="center" label="å¤ç®±æ°" prop="HPackQty" width="120" show-overflow-tooltip> |
| | | <template slot-scope="scope"><el-input v-model="scope.row.HPackQty" /></template> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="æå°æ¨¡æ¿éæ©" :visible.sync="openPrintList" width="800px" append-to-body> |
| | | <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill" |
| | | <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill" |
| | | HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" /> |
| | | <!-- <div>111</div> --> |
| | | </el-dialog> |
| | |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | </script> |
| | | <style> |
| | | .input-search-btn { |
| | | background-color: rgb(24, 144, 255) !important; |
| | | color: #fff !important; |
| | | } |
| | | </style> |
| | |
| | | >ä¸ç§»</el-button |
| | | > |
| | | </div> |
| | | <!-- TODO: æç»å表添å è¾
å©å±æ§éæ© --> |
| | | <el-table |
| | | :data="editData" |
| | | style="width: 100%" |