调整 库位码 模板
条码生成时 添加 物料信息 可选 辅助属性
调拨申请单 明细信息 添加 调入组织
| | |
| | | { |
| | | "Version":"6.8.2.2", |
| | | "Version":"6.8.9.5", |
| | | "Title":"1a.ç®åè¡¨æ ¼", |
| | | "Author":"éæµªæ¥è¡¨è½¯ä»¶", |
| | | "Description":"æ¼ç¤ºä¸ä¸ªæåºæ¬çå表æ¥è¡¨ã", |
| | |
| | | "CenterView":true, |
| | | "PrintAdaptMethod":"ResizeToFit", |
| | | "Recordset":{ |
| | | "ConnectionString":"xml", |
| | | "QuerySQL":"éå®åºåºå.txt", |
| | | "Field":[ |
| | | { |
| | | "Name":"æ¡ç ç¼å·" |
| | | "Name":"æ¡ç ç¼å·1" |
| | | }, |
| | | { |
| | | "Name":"æ¡ç ç¼å·2" |
| | | }, |
| | | { |
| | | "Name":"ä»ä½åç§°1" |
| | | }, |
| | | { |
| | | "Name":"ä»ä½åç§°2" |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ], |
| | | "ColumnContent":{ |
| | | "Height":3.41313, |
| | | "Height":5.60917, |
| | | "ColumnContentCell":[ |
| | | { |
| | | "Column":"åæ®å·", |
| | |
| | | "Left":0.396875, |
| | | "Top":0.211667, |
| | | "Width":8.20208, |
| | | "Height":2.98979 |
| | | "Height":5.18583 |
| | | }, |
| | | { |
| | | "Type":"Barcode", |
| | | "Name":"Barcode1", |
| | | "Left":0.211667, |
| | | "Top":0.396875, |
| | | "Width":4.39208, |
| | | "Height":2.59292, |
| | | "Left":-0.370417, |
| | | "Top":0.79375, |
| | | "Width":5.52979, |
| | | "Height":3.59833, |
| | | "BarcodeType":"QRCode", |
| | | "Text":"[#æ¡ç ç¼å·#]" |
| | | "CaptionPosition":"None", |
| | | "Text":"[#æ¡ç ç¼å·1#]" |
| | | }, |
| | | { |
| | | "Type":"Barcode", |
| | | "Name":"Barcode2", |
| | | "Left":4.04813, |
| | | "Top":0.79375, |
| | | "Width":5.13292, |
| | | "Height":3.59833, |
| | | "BarcodeType":"QRCode", |
| | | "CaptionPosition":"None", |
| | | "Text":"[#æ¡ç ç¼å·2#]" |
| | | }, |
| | | { |
| | | "Type":"FieldBox", |
| | | "Name":"FieldBox1", |
| | | "Left":0.608542, |
| | | "Top":4.60375, |
| | | "Width":3.59833, |
| | | "Height":0.608542, |
| | | "TextAlign":"MiddleCenter", |
| | | "DataField":"ä»ä½åç§°1" |
| | | }, |
| | | { |
| | | "Type":"FieldBox", |
| | | "Name":"FieldBox2", |
| | | "Left":4.78896, |
| | | "Top":4.60375, |
| | | "Width":3.59833, |
| | | "Height":0.608542, |
| | | "TextAlign":"MiddleCenter", |
| | | "DataField":"ä»ä½åç§°2" |
| | | } |
| | | ] |
| | | } |
| | |
| | | this.sWhere += " and " + this.queryParams.ColName2 + " " + com2; |
| | | } |
| | | if (this.queryParams.HNumber) { |
| | | this.sWhere += " and ä»åºä»£ç like '%" + this.queryParams.HNumber + "%'"; |
| | | this.sWhere += " and è¾
å©å±æ§ä»£ç like '%" + this.queryParams.HNumber + "%'"; |
| | | } |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and ä»åºåç§° like '%" + this.queryParams.HName + "%'"; |
| | | this.sWhere += " and è¾
å©å±æ§åç§° like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | // if (this.queryParams.HOrgID) { |
| | | // this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"; |
| | |
| | | <template> |
| | | <div> |
| | | <div id="report_holder"> </div> |
| | | </div> |
| | | <div> |
| | | <div id="report_holder"></div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { webapp_ws_ajax_run, webapp_urlprotocol_startup, urlAddRandomNo } from "@/utils/grwebapp"; |
| | | import axios from 'axios' |
| | | import { |
| | | webapp_ws_ajax_run, |
| | | webapp_urlprotocol_startup, |
| | | urlAddRandomNo, |
| | | } from "@/utils/grwebapp"; |
| | | import axios from "axios"; |
| | | |
| | | export default { |
| | | name: 'HBarPlanPrint', |
| | | data() { |
| | | return { |
| | | handleMessage: this.$route.query, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | //å®é
åºç¨ä¸ï¼dataåºè¯¥ä¸ºç¨åºä¸éè¿åç§éå¾è·åå°çæ°æ®ï¼æåè¦å°æ°æ®è½¬æ¢ä¸ºæ¥è¡¨éè¦çXMLæJSONæ ¼å¼çåç¬¦ä¸²æ°æ® |
| | | json_data: { |
| | | recordset: [] |
| | | }, |
| | | |
| | | } |
| | | name: "HBarPlanPrint", |
| | | data() { |
| | | return { |
| | | handleMessage: this.$route.query, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | //å®é
åºç¨ä¸ï¼dataåºè¯¥ä¸ºç¨åºä¸éè¿åç§éå¾è·åå°çæ°æ®ï¼æåè¦å°æ°æ®è½¬æ¢ä¸ºæ¥è¡¨éè¦çXMLæJSONæ ¼å¼çåç¬¦ä¸²æ°æ® |
| | | json_data: { |
| | | recordset: [], |
| | | }, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.ws_both_from_object(); |
| | | }, |
| | | // created() { |
| | | // this.ws_both_from_object() |
| | | // }, |
| | | methods: { |
| | | // è·ååæ°_ä¼ éçJSONæ ¼å¼åæ° |
| | | getUrlVars_JSON() { |
| | | var datajson; |
| | | var str = this.propsData; //è·å龿¥ä¸ä¼ éçåæ° |
| | | var arr = str.substring(str.lastIndexOf("=") + 1); |
| | | datajson = JSON.parse(decodeURI(arr)); |
| | | return datajson; |
| | | }, |
| | | mounted() { |
| | | this.ws_both_from_object() |
| | | |
| | | ws_both_from_object() { |
| | | let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp); |
| | | let sql = ""; |
| | | if (this.$route.query.Type == "Kf_SellOutBillList") { |
| | | sql = |
| | | "exec h_p_Kf_SellOutBillList_PrintSellOutBill " + |
| | | this.handleMessage.linterid.toString(); |
| | | } else if (this.$route.query.Type == "HGy_BarCodeBill") { |
| | | 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()); |
| | | sql = `SELECT |
| | | CEILING(CAST(t.row_num AS FLOAT) / 2) AS orderid, |
| | | MAX(CASE WHEN t.row_num % 2 = 1 THEN t.æ¡ç ç¼å· END) AS æ¡ç ç¼å·1, |
| | | MAX(CASE WHEN t.row_num % 2 = 1 THEN t.ä»ä½åç§° END) AS ä»ä½åç§°1, |
| | | MAX(CASE WHEN t.row_num % 2 = 0 THEN t.æ¡ç ç¼å· END) AS æ¡ç ç¼å·2, |
| | | MAX(CASE WHEN t.row_num % 2 = 0 THEN t.ä»ä½åç§° END) AS ä»ä½åç§°2 |
| | | FROM ( |
| | | SELECT |
| | | æ¡ç ç¼å·, ä»ä½åç§°, |
| | | ROW_NUMBER() OVER (ORDER BY t1.HItemID) AS row_num |
| | | FROM h_v_IF_StockPlaceList t1 where æ¡ç ç¼å· in (${condition}) |
| | | ) AS t |
| | | GROUP BY CEILING(CAST(t.row_num AS FLOAT) / 2) |
| | | ORDER BY orderid;`; |
| | | } |
| | | axios |
| | | .get(this.baseURL + "/CommonModel/searchMethod", { |
| | | params: { |
| | | sql: sql, |
| | | user: sessionStorage["HUserName"], |
| | | ModRightNameCheck: "", |
| | | // , "HSubID": data[i].hsubid |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | let result = response.data; |
| | | this.json_data.recordset = result.data; |
| | | //åæ°å
·ä½è¯´æè¯·åèå¸®å©ææ¡£ä¸çâWEBæ¥è¡¨(B/Sæ¥è¡¨)->WEBæ¥è¡¨å®¢æ·ç«¯->å¯å¨åæ°è¯´æâé¨å |
| | | var args = { |
| | | type: "preview", //设置ä¸åç屿§å¯ä»¥æ§è¡ä¸åçä»»å¡ï¼å¦ï¼preview print pdf xls csv txt rtf img grd |
| | | // report: this.json_report, //report: JSON.stringify(json_report), |
| | | report: urlAddRandomNo("./static/grf/" + OpenTmp + ".grf"), |
| | | data: this.json_data, //data: JSON.stringify(json_data) |
| | | }; |
| | | console.log(args, this.json_data); |
| | | webapp_ws_ajax_run(args); |
| | | // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/éå®åºåºå.grf", this.json_data); |
| | | // reportViewer.start(); |
| | | }) |
| | | .catch((error) => { |
| | | console.log(22222, error); |
| | | this.$modal.msgError("æ¥å£è¯·æ±å¤±è´¥!"); |
| | | }); |
| | | }, |
| | | // created() { |
| | | // this.ws_both_from_object() |
| | | // }, |
| | | methods: { |
| | | // è·ååæ°_ä¼ éçJSONæ ¼å¼åæ° |
| | | getUrlVars_JSON() { |
| | | var datajson; |
| | | var str = this.propsData; //è·å龿¥ä¸ä¼ éçåæ° |
| | | var arr = str.substring(str.lastIndexOf("=") + 1); |
| | | datajson = JSON.parse(decodeURI(arr)); |
| | | return datajson; |
| | | }, |
| | | ws_both_from_object() { |
| | | let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp) |
| | | let sql = '' |
| | | if (this.$route.query.Type == 'Kf_SellOutBillList') { |
| | | sql = "exec h_p_Kf_SellOutBillList_PrintSellOutBill " + this.handleMessage.linterid.toString() |
| | | } else if (this.$route.query.Type == 'HGy_BarCodeBill') { |
| | | 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: { |
| | | "sql": sql, |
| | | "user": sessionStorage["HUserName"], |
| | | "ModRightNameCheck": '' |
| | | // , "HSubID": data[i].hsubid |
| | | }, |
| | | }).then(response => { |
| | | let result = response.data |
| | | this.json_data.recordset = result.data |
| | | //åæ°å
·ä½è¯´æè¯·åèå¸®å©ææ¡£ä¸çâWEBæ¥è¡¨(B/Sæ¥è¡¨)->WEBæ¥è¡¨å®¢æ·ç«¯->å¯å¨åæ°è¯´æâé¨å |
| | | var args = { |
| | | type: "preview", //设置ä¸åç屿§å¯ä»¥æ§è¡ä¸åçä»»å¡ï¼å¦ï¼preview print pdf xls csv txt rtf img grd |
| | | // report: this.json_report, //report: JSON.stringify(json_report), |
| | | report: urlAddRandomNo('./static/grf/' + OpenTmp + '.grf'), |
| | | data: this.json_data //data: JSON.stringify(json_data) |
| | | }; |
| | | console.log(args, this.json_data) |
| | | webapp_ws_ajax_run(args); |
| | | // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/éå®åºåºå.grf", this.json_data); |
| | | // reportViewer.start(); |
| | | }).catch(error => { |
| | | console.log(22222, error) |
| | | this.$modal.msgError("æ¥å£è¯·æ±å¤±è´¥!"); |
| | | }); |
| | | |
| | | } |
| | | }, |
| | | } |
| | | |
| | | </script> |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | <el-col :span="6"> |
| | | <el-form-item label="éåå·" prop="HSourceBillNo"> |
| | | <el-input v-model="form.HSourceBillNo" placeholder="请è¾å
¥éåå·" disabled> |
| | | <el-button class="input-search-btn" 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(null)"></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="è¾
å©å±æ§ä»£ç " prop="HAuxPropNumber" width="120" |
| | | show-overflow-tooltip> |
| | | <template slot-scope="scope"><el-input v-model="scope.row.HAuxPropNumber" /></template> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HAuxPropNumber" |
| | | @keyup.native.f7="openDataDialog(1, scope.row)" |
| | | @dblclick.native="openDataDialog(1, scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="è¾
å©å±æ§åç§°" prop="HAuxPropName" width="120" |
| | | show-overflow-tooltip> |
| | |
| | | <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body @close="closeBill"> |
| | | <HSourceReportHtml @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" |
| | | :HOrgID='this.form.HOrgID' :HSouceBillType="HSouceBillType" v-if="ScICMOBillShow" /> |
| | | |
| | | <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 HSourceReportHtml from '@/views/component/HSourceReportHtml' |
| | | import PrintList from "@/views/component/printList"; |
| | | import moment from 'moment'; |
| | | import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue"; |
| | | |
| | | export default { |
| | | name: 'Gy_BarCodeBill', |
| | | components: { HSourceReportHtml, PrintList }, |
| | | components: { HSourceReportHtml, PrintList, GyProperty }, |
| | | props: { |
| | | OperationType: { type: Number, }, |
| | | linterid: { type: Number, }, |
| | |
| | | materialShow: false,//ç©ææ°æ®ç»ä»¶ |
| | | gyEmployeeShow: false,//éå®åæ°æ®ç»ä»¶ |
| | | ScICMOBillShow: false, |
| | | propertyShow: false, |
| | | deptform: {},//å¼¹çªé䏿°æ® |
| | | openData: false,//æ°æ®å¼¹çª |
| | | dialogTitle: '', |
| | |
| | | }, |
| | | //å¼¹çªèµå¼ |
| | | dbEmitData(deptRow, num) { |
| | | if(num) { |
| | | if(num == 'gyProperty') { |
| | | this.editWlxxData[this.zbIndex].HAuxPropID = deptRow.HItemID; |
| | | this.editWlxxData[this.zbIndex]["HAuxPropName"] = deptRow["è¾
å©å±æ§åç§°"]; |
| | | this.editWlxxData[this.zbIndex]["HAuxPropNumber"] = deptRow["è¾
å©å±æ§ä»£ç "]; |
| | | this.propertyShow = false; |
| | | this.openData = false; |
| | | } |
| | | |
| | | return |
| | | } |
| | | console.log(deptRow) |
| | | if (deptRow.length > 0) { |
| | | this.zbDataShow = false |
| | |
| | | , 'HPOOrderInterID': result.data[i].éè´è®¢åå
ç |
| | | , 'HPOOrderEntryID': result.data[i].éè´è®¢ååå
ç |
| | | , 'HPOOrderBillNo': result.data[i].éè´è®¢åå· |
| | | , 'HPropertyID': result.data[i].HPropertyID |
| | | , 'HPropertyName': result.data[i].è¾
å©å±æ§ |
| | | , 'HAuxPropID': result.data[i].HPropertyID |
| | | , 'HAuxPropName': result.data[i].è¾
å©å±æ§ |
| | | , 'HAuxPropNumber': result.data[i].è¾
å©å±æ§ä»£ç |
| | | , 'HSecUnitID': result.data[i].HSecUnitID |
| | | , 'HSecUnitName': result.data[i].è¾
å©è®¡éåä½ |
| | | , 'HSecUnitRate': result.data[i].æ¢ç®ç |
| | |
| | | if (row) { |
| | | this.zbIndex = row.index - 1 |
| | | } |
| | | this.showReset() |
| | | this.HSouceBillType = this.getSupType() |
| | | this.dialogTitle = this.getSupType() + 'å表' |
| | | this.ScICMOBillShow = true |
| | | this.openData = true |
| | | if(num) { |
| | | switch(num) { |
| | | case 1: |
| | | this.dialogTitle = 'è¾
å©å±æ§å表' |
| | | this.propertyShow = true |
| | | this.openData = true |
| | | ;break; |
| | | } |
| | | }else { |
| | | this.showReset() |
| | | this.HSouceBillType = this.getSupType() |
| | | this.dialogTitle = this.getSupType() + 'å表' |
| | | this.ScICMOBillShow = true |
| | | this.openData = true |
| | | } |
| | | |
| | | }, |
| | | } |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="è°å
¥ç»ç»" prop="HSTOCKINORGID" > |
| | | <el-select v-model="form.HSTOCKINORGID" placeholder="è¯·éæ©è°å
¥ç»ç»" :disabled="OperationType == 3"> |
| | | <el-select v-model="form.HSTOCKINORGID" placeholder="è¯·éæ©è°å
¥ç»ç»" :disabled="OperationType == 3" @change="StockInOrgChangeHandler"> |
| | | <el-option |
| | | v-for="(item, index) in organizationList" |
| | | :key="index" |
| | |
| | | this.getdata(); |
| | | }, |
| | | methods: { |
| | | StockInOrgChangeHandler() { |
| | | this.editData.forEach(element => { |
| | | element.HSTOCKORGINID = this.form.HSTOCKINORGID |
| | | }); |
| | | }, |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | |
| | | è¾
åä½: "", |
| | | HRemark: "", |
| | | HSTOCKORGID: sessionStorage["OrganizationID"], |
| | | HSTOCKORGINID: this.form.HSTOCKINORGID, |
| | | HPropertyID: 0, |
| | | è¾
å©å±æ§: "", |
| | | }; |