-
-
-
+
+
+
@@ -13,6 +13,9 @@
+
+
+
@@ -28,22 +31,49 @@
:table-item="table"
@pageSizeChange="e => select.pageSize = e"
@pageIndexChange="pageChange"
- >
+ >
+
+
+
+
+
+ {{ item.value }}
+
+
+
+
+
-
-
-
+
+ -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -53,7 +83,7 @@
-
+
@@ -70,6 +100,7 @@ import {
getOatoken
} from '@/api/contract.js'
import addoutbounds from './component/addoutbounds.vue'
+import showChuku from './component/showChuku.vue'
import printoutbounds from './component/printoutbounds.vue'
import {
Message
@@ -83,18 +114,13 @@ import {
} from '@/api/system/dictionary'
export default {
components: {
- addoutbounds,
+ addoutbounds,
+ showChuku,
imports,
printoutbounds
},
data() {
return {
- window: {
- width: 0,
- height: 0,
- top: 0,
- left: 0
- },
loading: false,
userName: '',
authName: '',
@@ -105,20 +131,41 @@ export default {
pageIndex: 1,
keyword: '',
chukuleixing: '',
+ zhuangtai:'',
created_at:'',
chukushijian:''
},
chukuTypeList: [{
- id: '领用',
+ id: '领用出库',
value: '领用出库'
}, {
- id: '处置',
+ id: '处置出库',
value: '处置出库'
}, {
- id: '调令',
+ id: '调令出库',
value: '调令出库'
}],
- chukuType: '领用',
+ statusList:[{
+ id:0,
+ value:'待处理',
+ type:'info'
+ },{
+ id:1,
+ value:'待办结',
+ type:'warning'
+ },{
+ id:2,
+ value:'待出库',
+ type:''
+ },{
+ id:3,
+ value:'已出库',
+ type:'success'
+ },{
+ id:4,
+ value:'退回',
+ type:'danger'
+ }],
customForm: {
customFormId: '',
tableName: ''
@@ -140,15 +187,15 @@ export default {
fixed: 'left'
},
{
- label: '状态',
+ label: '出库类型',
width: 180,
- prop: 'zhuangtai',
+ prop: 'chukuleixing',
align: 'center'
},
{
- label: '出库类型',
+ label: '状态',
width: 180,
- prop: 'chukuleixing',
+ prop: 'zhuangtai',
align: 'center'
},
{
@@ -202,17 +249,13 @@ export default {
}
},
mounted() {
- if (this.$route.path) {
- const path = this.$route.path.split('_')[1]
- const tableName = path == 'receive' ? 'lingyongchuku' : (path == 'disposition' ? 'baofeichuzhi' : 'yingjichuku')
- getOutboundsStatus({
- table: tableName
- })
- }
- this.window.width = screen.availWidth * 0.95
- 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
+ // if (this.$route.path) {
+ // const path = this.$route.path.split('_')[1]
+ // const tableName = path == 'receive' ? 'lingyongchuku' : (path == 'disposition' ? 'baofeichuzhi' : 'yingjichuku')
+ // getOutboundsStatus({
+ // table: tableName
+ // })
+ // }
this.getUserName()
this.getindex()
getOatoken().then(res => {
@@ -220,6 +263,10 @@ export default {
})
},
methods: {
+ showChukuDetail(id){
+ this.$refs['showChuku'].id = id
+ this.$refs['showChuku'].isShow = true
+ },
async getUserName() {
getInfo().then(res => {
console.log('res', res)
@@ -244,7 +291,13 @@ export default {
filter: [{ 'key': 'jilurenyuan', 'op': 'like', 'value': this.select.keyword },
{ 'key': 'chukuleixing', 'op': 'like', 'value': this.select.chukuleixing ? this.select.chukuleixing : '' },
{ 'key': 'created_at', 'op': 'like', 'value': this.select.created_at ? this.select.created_at : '' },
- { 'key': 'chukushijian', 'op': 'like', 'value': this.select.chukushijian ? this.select.chukushijian : '' }]
+ { 'key': 'chukushijian', 'op': 'like', 'value': this.select.chukushijian ? this.select.chukushijian : '' },
+ {
+ 'key': 'zhuangtai',
+ 'op': 'like',
+ 'value': this.select.zhuangtai ? this.select.zhuangtai : (this.select.zhuangtai===0?0:'')
+ }]
+
})
this.list = res.data
this.total = res.total
@@ -270,64 +323,18 @@ export default {
this.$refs['printoutbounds'].chukuType = leixing
this.$refs['printoutbounds'].isShow = true
},
- async tofollow(id, row) {
- console.log(row)
- if (row.id_outbounds_items_outbounds_id_relation.length < 1) {
- Message({
- type: 'warning',
- message: '请补充出库物资'
- })
- return
- }
- console.log(row)
- // return
- let wuzimingcheng = ''
- let shuliang = ''
- let guigexinghao = ''
- row.id_outbounds_items_outbounds_id_relation.map(item => {
- wuzimingcheng += item.zichanmingcheng + '、'
- shuliang += item.jieyongshuliang + '、'
- guigexinghao += item.guigexinghao + '、'
- })
-
- const default_json = {
- // 'yewukeshi':row.jieyongbumen,
- // 'bianhao':row.chukushijian+'-'+row.id,
- // 'wuzimingcheng':row.id_outbounds_items_outbounds_id_relation[0].zichanmingcheng,
- // 'lingyongshijian':row.chukushijian,
- // 'shuliang':row.id_outbounds_items_outbounds_id_relation[0].jieyongshuliang,
- // 'xinghaoguige':row.id_outbounds_items_outbounds_id_relation[0].guigexinghao,
- // 'jingbanren':row.jilurenyuan,
- // 'beizhu':row.beizhu,
- // 'gudingzichanbianhao':row.gudingzichanbianhao,
- // 'baofeiyuanyin':row.baofeiyuanyin,
- 'wuzimingcheng': wuzimingcheng,
- 'shuliang': shuliang,
- 'xinghaoguige': guigexinghao,
- 'yewukeshi': row.jieyongbumen,
- 'bianhao': row.chukushijian + '-' + row.id,
- 'lingyongshijian': row.chukushijian,
- 'jingbanren': row.jilurenyuan,
- 'beizhu': row.beizhu,
- 'baofeiyuanyin': row.baofeiyuanyin,
- 'link_id': row.id
- }
+ async toOaFollow(id, type) {
let typeid = ''
const typeObj = JSON.parse(process.env.VUE_APP_OA_URL_TYPE)
+ console.log("typeObj",typeObj,type)
for (var k in typeObj) {
- if (k == row.chukuleixing) {
+ if (k == type) {
typeid = parseInt(typeObj[k])
}
}
- // 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}
const url =
- `${process.env.VUE_APP_OA_URL}/admin/flow/create/${typeid}?wuziguanli_oatoken=${this.wuziguanli_oatoken}&username=${this.userName}&default_json=${JSON.stringify(default_json)}`
- const seeBuy = window.open(url, 'follow',
- `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
- )
- console.log(url)
+ `${process.env.VUE_APP_OA_URL}/admin/flow/create/${typeid}?wuziguanli_oatoken=${this.wuziguanli_oatoken}&username=${this.authName}&link_id=${id}`
+ const seeBuy = window.open(url, '_blank')
},
deleteChuku(row) {
// return
diff --git a/src/views/stocks/component/addRuku copy.vue b/src/views/stocks/component/addRuku copy.vue
index 76fa44a..2432fcb 100644
--- a/src/views/stocks/component/addRuku copy.vue
+++ b/src/views/stocks/component/addRuku copy.vue
@@ -1,460 +1,141 @@
-
-
+
+
+
+
+
+
-
-
-
- 采购合同:
-
-
+
-
-
-
-
-
-
-
- 应急采购请示:
-
-
+ />
+
+
-
-
-
-
-
-
-
-
-
- *入库时间:
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 佐证文件:
-
-
+
+
+
+
+
+
+
+
+
+
+
- 选取文件
- 上传到服务器
- 上传文件不超过500kb
-
-
-
-
-
-
-
- 入库明细 :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- *种类编码:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- *入库批次:
-
-
-
-
-
-
-
-
+
选取文件
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+ 添加物资明细
+ 导入
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
查询
+
+
+
+
+ 打印二维码
+ 关闭
+
+
-
-
-
+
+
+
-
+
查询
@@ -467,63 +148,66 @@
style="padding-top: 14px;display: flex;justify-content: center;"
@on-change="htPageChange"
/>
-
-
-
-
-
- 查询
-
-
+
+
+
+
+
+ 查询
+
+
-
-
-
-
-
-
- 查询
-
-
+ />
+
+
+
+
+
+
+ 查询
+
+
-
+ />
+
+
+
-
-
+ />
-
+
+
+
+
-
diff --git a/src/views/stocks/component/addRuku.vue b/src/views/stocks/component/addRuku.vue
index 2432fcb..8196073 100644
--- a/src/views/stocks/component/addRuku.vue
+++ b/src/views/stocks/component/addRuku.vue
@@ -1,10 +1,6 @@
-
+
@@ -15,46 +11,14 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -65,26 +29,13 @@
-
-
+
+
选取文件
-
-
-
@@ -94,12 +45,8 @@
- 添加物资明细
- 导入
+ 添加物资明细
+
@@ -116,81 +63,29 @@
-
+
+
+
+ 发起{{rukuType}}流程
+
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
+
@@ -199,848 +94,544 @@
diff --git a/src/views/stocks/index.vue b/src/views/stocks/index.vue
index ff1a3ba..8d0b35c 100644
--- a/src/views/stocks/index.vue
+++ b/src/views/stocks/index.vue
@@ -1,10 +1,11 @@