完善采购订单
This commit is contained in:
@@ -20,8 +20,8 @@ export function getTypeValueList(data) {
|
|||||||
// 根据当前登录用户的全路径查询相应部门下的所有人
|
// 根据当前登录用户的全路径查询相应部门下的所有人
|
||||||
export function selAllByOrgSidPath(data) {
|
export function selAllByOrgSidPath(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/oms/apiadmin/sysstafforg/selAllByOrgSidPath',
|
url: '/oms/apiadmin/sysstafforg/selByOrgPath',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
params: data,
|
params: data,
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -694,6 +694,15 @@
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (this.selectionList[0].state != '未审核') {
|
||||||
|
this.$message({
|
||||||
|
type: 'warning',
|
||||||
|
message: "请选择未审核的单据",
|
||||||
|
showClose: true
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.viewState = 3
|
this.viewState = 3
|
||||||
this.$refs['divadd'].showEdit(this.selectionList[0])
|
this.$refs['divadd'].showEdit(this.selectionList[0])
|
||||||
@@ -710,6 +719,19 @@
|
|||||||
doDel() {
|
doDel() {
|
||||||
|
|
||||||
if (this.sids.length > 0) {
|
if (this.sids.length > 0) {
|
||||||
|
|
||||||
|
for (var i = 0; i < this.selectionList.length; i++) {
|
||||||
|
if (this.selectionList[i].state != '未审核') {
|
||||||
|
this.$message({
|
||||||
|
type: 'warning',
|
||||||
|
message: "请选择未审核的单据",
|
||||||
|
showClose: true
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
|
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
|
||||||
this.$confirm(tip, '提示', {
|
this.$confirm(tip, '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
@@ -795,7 +795,7 @@
|
|||||||
backData2(value) {
|
backData2(value) {
|
||||||
console.log('backData2》》》》', value)
|
console.log('backData2》》》》', value)
|
||||||
console.log('imgList', this.imgList)
|
console.log('imgList', this.imgList)
|
||||||
|
this.formobj.purchaseAppendixList = []
|
||||||
for (var i = 0; i < this.imgList.length; i++) {
|
for (var i = 0; i < this.imgList.length; i++) {
|
||||||
this.formobj.purchaseAppendixList.push({
|
this.formobj.purchaseAppendixList.push({
|
||||||
url: this.imgList[i].url
|
url: this.imgList[i].url
|
||||||
|
|||||||
@@ -734,6 +734,17 @@
|
|||||||
|
|
||||||
this.orderInfo.sid = this.sids[0]
|
this.orderInfo.sid = this.sids[0]
|
||||||
|
|
||||||
|
if (this.orderInfo.state == 3) {
|
||||||
|
if (this.orderInfo.remarks == '') {
|
||||||
|
this.$message({
|
||||||
|
type: 'warning',
|
||||||
|
message: '请填写备注',
|
||||||
|
showClose: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
req.examine(this.orderInfo).then((resp) => {
|
req.examine(this.orderInfo).then((resp) => {
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
@@ -18,11 +18,13 @@
|
|||||||
<div style="display: flex;flex-direction: row;width: 100%;margin-top: 10px;">
|
<div style="display: flex;flex-direction: row;width: 100%;margin-top: 10px;">
|
||||||
<div style="display: flex;flex-direction: row;flex: 1 ; align-items: center;">
|
<div style="display: flex;flex-direction: row;flex: 1 ; align-items: center;">
|
||||||
<span style="width: 80px;text-align: right;"><span class="must">*</span> 部门:</span>
|
<span style="width: 80px;text-align: right;"><span class="must">*</span> 部门:</span>
|
||||||
<el-select v-model="form.sysStaffOrg.orgName" placeholder="请选择" style="margin-left: 10px; flex: 0.8;">
|
<el-select ref="treeSelect" v-model="form.sysStaffOrg.orgName" placeholder="请选择"
|
||||||
|
style="margin-left: 10px; flex: 0.8;">
|
||||||
<el-option hidden :key="form.sysStaffOrg.orgSid" :label="form.sysStaffOrg.orgName"
|
<el-option hidden :key="form.sysStaffOrg.orgSid" :label="form.sysStaffOrg.orgName"
|
||||||
:value="form.sysStaffOrg.orgName"></el-option>
|
:value="form.sysStaffOrg.orgName"></el-option>
|
||||||
<el-tree :data="treedata" ref="Tree" accordion node-key="sid" :default-checked-keys="checkedId"
|
<el-tree :data="treedata" ref="Tree" accordion node-key="sid" :default-checked-keys="checkedId"
|
||||||
:default-expand-all='true' :check-strictly='true' :props="defaultProps" @check-change="checkchange">
|
:default-expand-all='true' :check-strictly='true' :props="defaultProps" @node-click="nodeClick"
|
||||||
|
@check-change="checkchange">
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-checkbox class="checkbox" style="margin-left: 15px;" v-model="manageType"
|
<el-checkbox class="checkbox" style="margin-left: 15px;" v-model="manageType"
|
||||||
@@ -184,6 +186,14 @@
|
|||||||
treeNodeClick() {
|
treeNodeClick() {
|
||||||
this.$refs.el_select.visible = false
|
this.$refs.el_select.visible = false
|
||||||
},
|
},
|
||||||
|
nodeClick(val) {
|
||||||
|
console.log("nodeClick", val);
|
||||||
|
this.form.sysStaffOrg.orgSid = val.sid
|
||||||
|
this.form.sysStaffOrg.orgName = val.name
|
||||||
|
this.form.sysStaffOrg.orgCode = val.orgCode
|
||||||
|
this.$refs.treeSelect.visible = false
|
||||||
|
|
||||||
|
},
|
||||||
checkchange(data, checked, indeterminate) {
|
checkchange(data, checked, indeterminate) {
|
||||||
|
|
||||||
console.log("checkchange", data);
|
console.log("checkchange", data);
|
||||||
|
|||||||
@@ -129,7 +129,8 @@
|
|||||||
<div style="display: flex;flex-direction: row;width: 100%;margin-top: 10px;">
|
<div style="display: flex;flex-direction: row;width: 100%;margin-top: 10px;">
|
||||||
<div style="display: flex;flex-direction: row;flex: 1 ; align-items: center;">
|
<div style="display: flex;flex-direction: row;flex: 1 ; align-items: center;">
|
||||||
<span style="width: 80px;text-align: right;"><span class="must">*</span> 部门:</span>
|
<span style="width: 80px;text-align: right;"><span class="must">*</span> 部门:</span>
|
||||||
<el-select v-model="form.sysStaffOrg.orgName" placeholder="请选择" style="margin-left: 10px; flex: 0.8;">
|
<el-select ref="treeSelect" v-model="form.sysStaffOrg.orgName" placeholder="请选择"
|
||||||
|
style="margin-left: 10px; flex: 0.8;">
|
||||||
<el-option hidden :key="form.sysStaffOrg.orgSid" :label="form.sysStaffOrg.orgName"
|
<el-option hidden :key="form.sysStaffOrg.orgSid" :label="form.sysStaffOrg.orgName"
|
||||||
:value="form.sysStaffOrg.orgName"></el-option>
|
:value="form.sysStaffOrg.orgName"></el-option>
|
||||||
<el-tree :data="treedata" ref="Tree" @node-click="nodeClick" accordion node-key="sid"
|
<el-tree :data="treedata" ref="Tree" @node-click="nodeClick" accordion node-key="sid"
|
||||||
@@ -348,7 +349,7 @@
|
|||||||
this.form.sysStaffOrg.orgSid = val.sid
|
this.form.sysStaffOrg.orgSid = val.sid
|
||||||
this.form.sysStaffOrg.orgName = val.name
|
this.form.sysStaffOrg.orgName = val.name
|
||||||
this.form.sysStaffOrg.orgCode = val.orgCode
|
this.form.sysStaffOrg.orgCode = val.orgCode
|
||||||
this.$refs.Tree.visible = false
|
this.$refs.treeSelect.visible = false
|
||||||
|
|
||||||
},
|
},
|
||||||
checkchange(data, checked, indeterminate) {
|
checkchange(data, checked, indeterminate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user