diff --git a/.env.development b/.env.development index 9033f2b..0ff4a59 100644 --- a/.env.development +++ b/.env.development @@ -2,9 +2,11 @@ ENV='development' # base api -VUE_APP_BASE_API = http://192.168.60.100:9002/ -VUE_APP_UPLOAD_API = http://192.168.60.100:9002/api/admin/upload-file -#VUE_APP_BASE_API = http://hd-wuziguanli-test.ali251.langye.net/ -#VUE_APP_UPLOAD_API = http://hd-wuziguanli-test.ali251.langye.net/api/admin/upload-file +#VUE_APP_BASE_API = http://192.168.60.100:9002/ +#VUE_APP_UPLOAD_API = http://192.168.60.100:9002/api/admin/upload-file +VUE_APP_BASE_API = http://hd-wuziguanli-test.ali251.langye.net/ +VUE_APP_UPLOAD_API = http://hd-wuziguanli-test.ali251.langye.net/api/admin/upload-file VUE_APP_OUT_URL = http://192.168.60.18:2021 + +VUE_APP_OUT_URL_test= http://suzhouhedaooa.langye.net diff --git a/public/print.html b/public/print.html index 2e01bca..7e18682 100644 --- a/public/print.html +++ b/public/print.html @@ -15,11 +15,14 @@ var qrcodetop = 50; //canvas宽高 var canvaswidth = 302; - var canvasheight = 188; + var canvasheight = 188; + var VUE_APP_BASE_API = window.location.protocol+"//"+window.location.host + // var VUE_APP_BASE_API="http://hd-wuziguanli-test.ali251.langye.net" //文字描述位置 var textleft = qrcodewidth / 2; var texttop = qrcodeheight + 70; - $(function() { + $(function() { + console.log(VUE_APP_BASE_API) $(".wrap").html("") var ids = getIds('ids').split(",") for (var i = 0; i < ids.length; i++) { @@ -37,7 +40,7 @@ id: id, table_name: 'inventorys' }, - url: 'http://hd-wuziguanli-test.ali251.langye.net/api/admin/base-form/show', + url: VUE_APP_BASE_API+'/api/admin/base-form/show', dataType: "json", success: function(result) { var printObj = result @@ -77,7 +80,7 @@ // alert(id) var qrcode = $(id).qrcode({ render: 'canvas', - text: utf16to8(printObji['wuzibianma'] + "-" + printObji['id']), + text:VUE_APP_BASE_API+'/admin/printShow.html', width: qrcodewidth, height: qrcodeheight, background: '#ffffff', diff --git a/public/printShow.html b/public/printShow.html new file mode 100644 index 0000000..d38ce39 --- /dev/null +++ b/public/printShow.html @@ -0,0 +1,10 @@ + + + + + + + + 123 + + \ No newline at end of file diff --git a/src/api/contract.js b/src/api/contract.js index fcee9e1..c99abca 100644 --- a/src/api/contract.js +++ b/src/api/contract.js @@ -23,3 +23,11 @@ export function getOatoken(params) { params }) } + +export function getOutboundsStatus(params) { + return request({ + method: "get", + url: "/api/admin/other/sync-outbounds-status", + params + }) +} diff --git a/src/views/component/imports.vue b/src/views/component/imports.vue index 00cca11..26fb6ac 100644 --- a/src/views/component/imports.vue +++ b/src/views/component/imports.vue @@ -51,6 +51,10 @@ export default { default: () => [], }, tableName: String, + istrueimport:{ + type:Boolean, + default:true + } }, data() { return { @@ -104,16 +108,21 @@ export default { }, imports() { - imports({ - table_name: this.tableName, - data: this.tableList - }).then(res => { - console.log(res) - this.$message({ - type: 'success', - message: `成功导入${res.total}条` + if(this.istrueimport){ + imports({ + table_name: this.tableName, + data: this.tableList + }).then(res => { + console.log(res) + this.$message({ + type: 'success', + message: `成功导入${res.total}条` + }) }) - }) + }else{ + console.log('importdata',this.tableList) + this.$emit('importdata',this.tableList) + } this.hidden(); this.$emit('refresh') } diff --git a/src/views/inventorys/index.vue b/src/views/inventorys/index.vue index b6265a4..a1a2fb0 100644 --- a/src/views/inventorys/index.vue +++ b/src/views/inventorys/index.vue @@ -100,10 +100,22 @@ prop: 'wuzibianma', align: 'center' }, + { + label: "固定资产编号", + width: 180, + prop: 'gudingzichanbianhao', + align: 'center' + }, { label: "资产名称", prop: 'zichanmingcheng', align: 'center' + }, + { + label: "规格型号", + prop: 'guigexinghao', + align: 'center', + width: 180 }, { label: "物资类型", diff --git a/src/views/outbounds/component/addoutbounds.vue b/src/views/outbounds/component/addoutbounds.vue index a09a497..9b077b0 100644 --- a/src/views/outbounds/component/addoutbounds.vue +++ b/src/views/outbounds/component/addoutbounds.vue @@ -1,6 +1,6 @@