Browse Source

供应链管理——采购退库、业务管理——出库申请

master
Zhao Qiqi 3 years ago
parent
commit
363b03a2b9
  1. 15
      anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js
  2. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue
  3. 37
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue
  4. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue
  5. 3
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoLook.vue
  6. 8
      anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/caigoutuiku.vue
  7. 6
      anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuiku.vue
  8. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuikuEdit.vue

15
anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js

@ -1,5 +1,4 @@
import request from '@/utils/request'
import qs from 'qs'
// 待出库分页列表 已改
export function listPage(params) {
@ -13,7 +12,19 @@ export function listPage(params) {
});
}
// 出库申请初始化/详情 已改
// 验证是否可出库
export function checkingApply(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/checkingApply',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 出库申请详情、编辑回显 已改
export function fetchDetailsBySid(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/fetchDetailsBySid',

6
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue

@ -243,7 +243,8 @@
useMessage = this.detailsList[i].useMessage
this.isShow = false
this.isShowLook = true
this.$refs['divUserInfo'].showInfo(useMessage, vinNo)
const createBtn = false
this.$refs['divUserInfo'].showInfo(useMessage, vinNo,createBtn)
}
}
},
@ -328,7 +329,8 @@
this.temp.sid = sid
this.detailsList = response.data.listVo
for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== '{}') {
//JSON.stringify()
if (this.detailsList[i].useMessage.vinNo !== '') {
this.detailsList[i].isExist = '1'
}
}

37
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue

@ -46,8 +46,8 @@
</el-col>
<el-col :span="6">
<el-form-item>
<el-radio v-model="temp.isTerminal" :label="0"></el-radio>
<el-radio v-model="temp.isTerminal" :label="1"></el-radio>
<el-radio v-model="temp.isTerminal" disabled :label="0"></el-radio>
<el-radio v-model="temp.isTerminal" disabled :label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="2"/>
@ -99,7 +99,7 @@
<template slot-scope="scope">
<!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true -->
<el-button
v-show="temp.isTerminal === 0"
v-show="temp.isTerminal === 0 && scope.row.isExist == '1'"
size="medium"
type="primary"
@click="lookUserInfo(scope.row.vinNo)"
@ -166,14 +166,7 @@
applyDate: "", //
detailsList: [],
}, //
detailsList: [
{
price: "", //
remarks: "", //
vinNo: "", //
useMessage: {},
},
],
detailsList: [],
sids: [],
vinNo_info: "",
submitDto: {
@ -195,24 +188,9 @@
},
created() {
//
this.init();
},
methods: {
// ------------ ------------
init() {
this.temp = {
applyName: window.sessionStorage.getItem("name"), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid
contractNo: "", //
isTerminal: 3, // 10
modelName: "", //
name: "", //
sid: "",
applyDate: "", //
detailsList: [],
isUse: false,
};
},
resetState() {
this.isShow = true;
this.isShowLook = false;
@ -230,8 +208,10 @@
this.temp = response.data;
this.temp.sid = sid;
this.detailsList = response.data.listVo;
console.log('详情回显车辆信息', this.detailsList)
for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== "{}") {
//JSON.stringify()
if (this.detailsList[i].useMessage.vinNo !== "") {
this.detailsList[i].isExist = "1";
}
}
@ -251,7 +231,8 @@
useMessage = this.detailsList[i].useMessage;
this.isShow = false;
this.isShowLook = true;
this.$refs["divUserInfo"].showInfo(useMessage, vinNo);
const createBtn = true
this.$refs["divUserInfo"].showInfo(useMessage, vinNo,createBtn);
}
}
},

4
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue

@ -97,7 +97,7 @@
import {mapGetters} from 'vuex'
import {
listPage,
fetchDetailsBySid,
checkingApply,
typeValues,
customerName,
checkNum
@ -327,7 +327,7 @@
}
if (this.sids.length > 0) {
this.FormLoading = true
fetchDetailsBySid(this.initObj).then(response => {
checkingApply(this.initObj).then(response => {
if (response.success) {
this.viewState = 2
this.temp = response.data

3
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoLook.vue

@ -122,12 +122,13 @@
init() {
},
showInfo(useMessage, vinNo) {
showInfo(useMessage, vinNo,createBtn) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
console.log('详情拿到的信息', useMessage)
this.tempUserLook = useMessage
this.createBtn = createBtn
},
// ------------ ------------

8
anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/caigoutuiku.vue

@ -236,14 +236,6 @@
this.$refs['divadd'].showAdd()
},
toEdit() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.sids.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const sid = this.sids[0]
const row = this.row

6
anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuiku.vue

@ -218,7 +218,7 @@
type: 'success',
duration: 2000
})
this.refreshIt()
// this.refreshIt()
} else {
this.$notify({
title: '提示',
@ -257,7 +257,7 @@
type: 'success',
duration: 2000
})
this.refreshIt()
// this.refreshIt()
} else {
this.$notify({
title: '提示',
@ -296,7 +296,7 @@
type: 'success',
duration: 2000
})
this.refreshIt()
// this.refreshIt()
} else {
this.$notify({
title: '提示',

2
anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuikuEdit.vue

@ -259,7 +259,7 @@
type: 'success',
duration: 2000
})
this.refreshIt()
// this.refreshIt()
} else {
this.$notify({
title: '提示',

Loading…
Cancel
Save