|
|
|
@ -253,7 +253,7 @@
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
<el-form-item label="回传系统:" prop="uploadIsMatching" class="query-form-item">
|
|
|
|
|
<el-select v-model="formData.uploadIsMatching" style="width: 80%" placeholder="是否配套系统"
|
|
|
|
|
@change="change"
|
|
|
|
|
@change="changeUploadIsMatching"
|
|
|
|
|
>
|
|
|
|
|
<el-option label="内部" :value="0"></el-option>
|
|
|
|
|
<el-option label="外部" :value="1"></el-option>
|
|
|
|
@ -264,10 +264,9 @@
|
|
|
|
|
<el-form-item label="回传单据类型:" prop="uploadDocumentTypeCode" class="query-form-item">
|
|
|
|
|
<el-select v-model="formData.uploadDocumentTypeCode" placeholder="请选择单据类型"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
@change="documentTypeChange"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in busTypes"
|
|
|
|
|
v-for="item in uploadTypes"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code"
|
|
|
|
@ -350,6 +349,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
invList: [],
|
|
|
|
|
busTypes: [],
|
|
|
|
|
uploadTypes: [],
|
|
|
|
|
formRules: {
|
|
|
|
|
busName: [
|
|
|
|
|
{required: true, message: '请输入业务名称', trigger: 'blur'}
|
|
|
|
@ -360,12 +360,12 @@ export default {
|
|
|
|
|
documentTypeCode: [
|
|
|
|
|
{required: true, message: '请选择单据类型', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
uploadIsMatching: [
|
|
|
|
|
{required: true, message: '请选择回传系统', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
uploadDocumentTypeCode: [
|
|
|
|
|
{required: true, message: '请选择回传单据类型', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
// uploadIsMatching: [
|
|
|
|
|
// {required: true, message: '请选择回传系统', trigger: 'blur'}
|
|
|
|
|
// ],
|
|
|
|
|
// uploadDocumentTypeCode: [
|
|
|
|
|
// {required: true, message: '请选择回传单据类型', trigger: 'blur'}
|
|
|
|
|
// ],
|
|
|
|
|
scanType: [
|
|
|
|
|
{required: true, message: '请选择扫码方式', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
@ -429,6 +429,7 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
change() {
|
|
|
|
|
this.formData.documentTypeCode = null
|
|
|
|
|
if (this.formData.isMatching == 0) {
|
|
|
|
@ -437,7 +438,59 @@ export default {
|
|
|
|
|
this.getBusTypeList()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changeUploadIsMatching() {
|
|
|
|
|
this.formData.uploadDocumentTypeCode = null
|
|
|
|
|
if (this.formData.uploadIsMatching == 0){
|
|
|
|
|
this.getUploadBusTypeList()
|
|
|
|
|
}else {
|
|
|
|
|
this.getUploadBusType()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getUploadBusType() {
|
|
|
|
|
let query = {
|
|
|
|
|
thirdSys: null,
|
|
|
|
|
key: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 50
|
|
|
|
|
}
|
|
|
|
|
getOriginBusType(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let busTypeList = response.data.list || []
|
|
|
|
|
let busTypes = busTypeList.map(busType => {
|
|
|
|
|
return {
|
|
|
|
|
code: busType.action,
|
|
|
|
|
name: busType.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.uploadTypes = busTypes
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getUploadBusTypeList() {
|
|
|
|
|
let query = {
|
|
|
|
|
enable: 1,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 50
|
|
|
|
|
}
|
|
|
|
|
getBusTypeList(query).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
// this.uploadTypes = res.data.list || []
|
|
|
|
|
let busTypeList = res.data.list || []
|
|
|
|
|
// _this.options.getWorkPlace = res.data.list || [];
|
|
|
|
|
let busTypes = busTypeList.map(busType => {
|
|
|
|
|
return {
|
|
|
|
|
code: busType.action,
|
|
|
|
|
name: busType.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.uploadTypes = busTypes
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error('获取错误')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
documentTypeChange(val) {
|
|
|
|
|
if (this.formData.isMatching == 0) {
|
|
|
|
|
|
|
|
|
@ -489,8 +542,7 @@ export default {
|
|
|
|
|
this.$message.error('获取错误')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
formSubmit() {
|
|
|
|
|
this.formData.workplaceCode = this.workplaceId
|
|
|
|
|
if (this.formData.scanType == 1) {
|
|
|
|
@ -594,6 +646,11 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.getBusTypeList()
|
|
|
|
|
}
|
|
|
|
|
if (this.formData.uploadIsMatching == 0){
|
|
|
|
|
this.getUploadBusTypeList()
|
|
|
|
|
}else {
|
|
|
|
|
this.getUploadBusType()
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.getBusTypeList()
|
|
|
|
|
}
|
|
|
|
@ -605,5 +662,9 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
.dialog-footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|