master
lion 2 years ago
parent 9afafd62ba
commit 5cfc85cd7b

@ -3,20 +3,24 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>物资详情</title>
<script language="javascript" src="/admin/jquery.js"></script>
</head>
<body>
<div class="wuzibianma">
</div>
</body>
<script>
var id = getIds("id")
// var VUE_APP_BASE_API = window.location.protocol+"//"+window.location.host;
var VUE_APP_BASE_API="http://192.168.60.99:9004"
// var wuzibianma = getIds('bm')
$(function(){
$(".wuzibianma").html("")
$(".wuzibianma").html(id)
getWuzi()
// $(".wuzibianma").html("")
// $(".wuzibianma").html(id)
})
function getIds(name) {
var reg = new RegExp("(^|&)" + name.toLowerCase() + "=([^&]*)(&|$)");
@ -26,5 +30,42 @@
}
return null
}
function getWuzi(){
$.ajax({
type: "get",
timeout: 15000,
async: false,
contentType: 'application/json',
data: {
id: id,
table_name: 'inventorys'
},
url: VUE_APP_BASE_API+'/api/admin/base-form/show',
dataType: "json",
success: function(result) {
var printObj = result
$(".wuzibianma").html("")
// $(".wuzibianma").html(id)
$(".wuzibianma").append(
"<p style='text-align:center;margin-bottom:0;padding-top:5px;'>苏州河道处</p>"+
"<div style='padding:15px;padding-top:5pxfont-size:24px'>"+
"<div>"+
"<p style='margin-bottom:0px'>物资编码:"+printObj['wuzibianma']+"</p>"+
"<p style='margin-bottom:0px'>物资名称:"+printObj['zichanmingcheng']+"</p>"+
"<p style='margin-bottom:0px'>物资类型:"+printObj['wuzileixing']+"</p>"+
"<p style='margin-bottom:0px'>物资型号:"+printObj['guigexinghao']+"</p>"+
"<p style='margin-bottom:0px'>计量单位:"+printObj['jiliangdanwei']+"</p>"+
"<p style='margin-bottom:0px'>在库数量:"+printObj['zaikushuliang']+"</p>"+
"</div>"+
"</div>")
// createCode("#page" + index, printObj)
// $(".load").remove()
},
complete: function(xhr, textStatus) {
}
});
}
</script>
</html>

@ -45,6 +45,23 @@
</div>
</div>
</div>
<div class="box box2">
<div class="boxtitle">
<span>当前库存</span>
<i class="el-icon-data-line statIcon"></i>
</div>
<div class="bline"></div>
<div class="boxcontent">
<div class="boxcontentitem">
<div style="display: flex;justify-content: space-around;">
<div class="boxcontentitem-small">
<span>{{totaldata.kucun}}</span>
<span>库存</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
@ -67,7 +84,8 @@
"month": {
"ruku": 0,
"chuku": 0
}
},
"kucun":0
}
}
},

@ -118,6 +118,9 @@
},
async loadChart(){
let that = this
that.lineArr.xArr = []
that.lineArr.series[0].data = []
that.lineArr.series[1].data = []
await stocksCharts({
start_time: this.start_time,
end_time: this.end_time

@ -5,7 +5,7 @@
<div class='printtitle'>苏州市河道管理处物资领用审批表</div>
<div class="printtop">
<span>业务科室:{{form.jieyongbumen}}</span>
<span>编号:</span>
<span>编号:{{form.chukushijian}}-{{form.id}}</span>
</div>
<table width='100%'>
<tr>
@ -152,6 +152,7 @@
} else {
this.id = ''
this.type = ''
this.form={}
this.mingxiList = []
}
}

@ -29,7 +29,7 @@
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'outbounds')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="tofollow(scope.row.id,scope.row)"></Button>
<!-- v-if='scope.row.zhuangtai==="待处理"' -->
<Button type="primary" size="small" style="margin-left: 10px;" @click="printChuku(scope.row.id,'print')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="printChuku(scope.row.id,'print')"></Button>
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteChuku(scope.row)">
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
</Poptip>
@ -99,6 +99,7 @@
customFormId: "",
tableName: ""
},
wuziguanli_oatoken:'',
form: [],
total: 0,
list: [],
@ -232,11 +233,11 @@
typeid = parseInt(typeObj[k])
}
}
let res = await getOatoken()
// let res = await getOatoken()
// = this.chukuType==''?31:(this.chukuType==''?32:33)
// http://suzhouhedaooa.langye.net/admin/flow/create/31?username=admin&default_json={%22bianhao%22:%22100%22}
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/create/${typeid}?wuziguanli_oatoken=${res.oatoken}&username=${this.userName}&default_json=${JSON.stringify(default_json)}`
`${process.env.VUE_APP_OA_URL}/admin/flow/create/${typeid}?wuziguanli_oatoken=${this.wuziguanli_oatoken}&username=${this.userName}&default_json=${JSON.stringify(default_json)}`
let seeBuy = window.open(url, 'follow',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
@ -271,6 +272,10 @@
this.window.left = (window.screen.width - 10 - this.window.width) / 2
this.getUserName()
this.getindex()
getOatoken().then(res=>{
this.wuziguanli_oatoken =res.oatoken
})
}
}

@ -315,6 +315,7 @@
rukuTypeName: '盘点',
tableName: 'stocks',
importstableName: 'stocks_items',
wuziguanli_oatoken:'',
customFormId: 8,
importForm: [],
cangkuList: [],
@ -565,6 +566,9 @@
},
created() {
this.getCangku()
getOatoken().then(res=>{
this.wuziguanli_oatoken =res.oatoken
})
},
methods: {
//
@ -669,10 +673,10 @@
this.getQs()
},
async toQsFollow(id){
let res = await getOatoken()
// let res = await getOatoken()
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${id}?wuziguanli_oatoken=${res.oatoken}`
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${id}?wuziguanli_oatoken=${this.wuziguanli_oatoken}`
console.log("url",url)
let seeBuy = window.open(url, 'seeBuy','location=0')
},
@ -785,11 +789,23 @@
this.showList = res.data
this.showTotal = res.total
},
//
getIds(url,name) {
var reg = new RegExp("(^|&)" + name.toLowerCase() + "=([^&]*)(&|$)");
var r = url.match(reg);
if (r != null) {
return unescape(r[2].replace(new RegExp(/(%25)/g), '%').replace(new RegExp(/(%25)/g), '%'));
}
return null
},
async getKucunShow(e) {
console.log(e)
let id = ''
if (e) {
id = e.split('-')[1]
// id = e.split('-')[1]
id = e.substring(e.indexOf('=') + 1, e.indexOf('&'));
console.log("id",id)
this.$nextTick(() => {
this.$refs.huikubianma.blur()
})

@ -243,9 +243,9 @@
})
return
}
let res = await getOatoken()
// let res = await getOatoken()
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.purchase_last_flow_id}?wuziguanli_oatoken=${res.oatoken}`
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.purchase_last_flow_id}?wuziguanli_oatoken=${this.wuziguanli_oatoken}`
let seeBuy = window.open(url, 'seeBuy',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
@ -260,9 +260,9 @@
})
return
}
let res = await getOatoken()
// let res = await getOatoken()
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.invite_last_flow_id}?wuziguanli_oatoken=${res.oatoken}`
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.invite_last_flow_id}?wuziguanli_oatoken=${this.wuziguanli_oatoken}`
let seeBidding = window.open(url, 'seeBidding',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
@ -277,9 +277,9 @@
})
return
}
let res = await getOatoken()
// let res = await getOatoken()
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.join_last_flow_id}?wuziguanli_oatoken=${res.oatoken}`
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.join_last_flow_id}?wuziguanli_oatoken=${this.wuziguanli_oatoken}`
let seeSign = window.open(url, 'seeSign',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
@ -298,7 +298,7 @@
let res = await getOatoken()
console.log(url)
let url =
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.req_last_flow_id}?wuziguanli_oatoken=${res.oatoken}`
`${process.env.VUE_APP_OA_URL}/admin/flow/view/${this.detail.req_last_flow_id}?wuziguanli_oatoken=${this.wuziguanli_oatoken}`
let seeAsk = window.open(url, 'seeAsk',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
@ -370,6 +370,10 @@
this.window.height = screen.availHeight * 0.95
this.window.top = (window.screen.height - 30 - this.window.height) / 2
this.window.left = (window.screen.width - 10 - this.window.width) / 2
getOatoken().then(res=>{
this.wuziguanli_oatoken =res.oatoken
})
}
}
</script>

Loading…
Cancel
Save