|
|
|
@ -3,150 +3,85 @@
|
|
|
|
|
<el-form>
|
|
|
|
|
<el-card style="margin-top: -10px;padding-top:10px ">
|
|
|
|
|
<el-row :gutter="20" type="flex">
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="系统标识" label-width="120px">
|
|
|
|
|
<el-col :span="80">
|
|
|
|
|
<!-- :disabled="true" 这个标识启用标识不能修改-->
|
|
|
|
|
<el-form-item label="单据类型:" label-width="120px">
|
|
|
|
|
<el-input
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
v-model="inputQuery.thirdId"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="系统名称" label-width="120px">
|
|
|
|
|
<el-input
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
v-model="inputQuery.thirdName"
|
|
|
|
|
v-model="inputQuery.name"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" type="flex">
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="系统状态" label-width="120px">
|
|
|
|
|
<el-radio-group v-model="inputQuery.enabled">
|
|
|
|
|
<el-radio :label="true">启用</el-radio>
|
|
|
|
|
<el-radio :label="false">禁用</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="设为主系统" label-width="120px">
|
|
|
|
|
<el-radio-group v-model="inputQuery.mainSys">
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="50">
|
|
|
|
|
<el-form-item label="单据类型代码:" label-width="120px">
|
|
|
|
|
<el-input
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.action"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
|
|
|
|
|
<!-- <el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="API说明文档" label-width="100px">-->
|
|
|
|
|
<!-- <div>-->
|
|
|
|
|
<!-- <a :href="inputQuery.guideUrl" target="_blank">{{ inputQuery.thirdName }}接口说明文档</a>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- inputQuery.thirdName-->
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item label="第三方服务IP地址:" label-width="120px">
|
|
|
|
|
<el-row :gutter="20" type="flex">
|
|
|
|
|
<el-col :span="50">
|
|
|
|
|
<el-form-item label="单据起始上传:" label-width="120px">
|
|
|
|
|
<el-input
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.thridUrl"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
v-model="inputQuery.createTime"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-button style="margin-left: 5px;" type="primary" @click="testThirdService">测试连通性</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card style="padding-top: 10px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item :label="inputQuery.thirdName+'接口地址'" label-width="200px">
|
|
|
|
|
<el-input
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.thirdSysUrl"
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" type="flex">
|
|
|
|
|
<el-col :span="50">
|
|
|
|
|
<el-form-item label="单据状态:" label-width="120px">
|
|
|
|
|
<el-radio-group v-model="configQuery.orderStatus" :disabled="configQuery.autoUpload">
|
|
|
|
|
<el-radio :label="1" :value="1" @change="handleRadioChange">待校验单据</el-radio>
|
|
|
|
|
<el-radio :label="2" :value="2" @change="handleRadioChange">未验收单据</el-radio>
|
|
|
|
|
<el-radio :label="3" :value="3" @change="handleRadioChange">已完成单据</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-button style="margin-left: 5px;" type="primary" @click="testThirdInter">测试连通性</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
|
|
|
|
|
<el-form-item :label="inputQuery.thirdName+'接口授权'" label-width="200px">
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-row :gutter="20" type="flex">
|
|
|
|
|
<el-col :span="50">
|
|
|
|
|
<el-form-item label="单据来源:" label-width="120px">
|
|
|
|
|
<template>
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="value2"
|
|
|
|
|
multiple
|
|
|
|
|
collapse-tags
|
|
|
|
|
style="margin-left: 0px;width: 250px"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item label="apikey:" label-width="100px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 50%;"
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.apikey"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item label="secretkey:" label-width="100px">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 50%"
|
|
|
|
|
size="mini"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.secretkey"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="备注说明">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
type="textarea"
|
|
|
|
|
size="mini"
|
|
|
|
|
rows="3"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.remark"
|
|
|
|
|
@input="change()"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {testThirdInter, testThirdService} from "@/api/thrsys/basicThirdSys";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "inputQuery",
|
|
|
|
@ -156,26 +91,73 @@ export default {
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
testThirdService() {
|
|
|
|
|
testThirdService(this.inputQuery).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("连接成功");
|
|
|
|
|
} else
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
testThirdInter() {
|
|
|
|
|
testThirdInter(this.inputQuery).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("连接成功");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
methods: {
|
|
|
|
|
handleRadioChange(val) {
|
|
|
|
|
if (val === 1) {
|
|
|
|
|
this.configQuery.orderUnCheck=1;
|
|
|
|
|
this.configQuery.orderUnReceive=0;
|
|
|
|
|
this.configQuery.orderScanFinish=0;
|
|
|
|
|
}
|
|
|
|
|
if (val === 2) {
|
|
|
|
|
this.configQuery.orderUnCheck=0;
|
|
|
|
|
this.configQuery.orderUnReceive=1;
|
|
|
|
|
this.configQuery.orderScanFinish=0;
|
|
|
|
|
}
|
|
|
|
|
if (val === 3) {
|
|
|
|
|
this.configQuery.orderUnCheck=0;
|
|
|
|
|
this.configQuery.orderUnReceive=0;
|
|
|
|
|
this.configQuery.orderScanFinish=1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
configQuery: {
|
|
|
|
|
autoUpload: null,
|
|
|
|
|
orderSyncTime: null,
|
|
|
|
|
orderStartTime: null,
|
|
|
|
|
orderUnCheck: null,
|
|
|
|
|
orderUnReceive: null,
|
|
|
|
|
orderScanFinish: null,
|
|
|
|
|
checkWebNew: null,
|
|
|
|
|
checkPdaUn: null,
|
|
|
|
|
checkPdaEd: null,
|
|
|
|
|
checkUdims: null,
|
|
|
|
|
checkPc: null,
|
|
|
|
|
checkSp: null,
|
|
|
|
|
checkChange: null,
|
|
|
|
|
checkBalacne: null,
|
|
|
|
|
busTypes: []
|
|
|
|
|
},
|
|
|
|
|
options: [{
|
|
|
|
|
value: '1',
|
|
|
|
|
label: 'web端新增单据'
|
|
|
|
|
}, {
|
|
|
|
|
value: '2',
|
|
|
|
|
label: '手持终端未校验单据'
|
|
|
|
|
}, {
|
|
|
|
|
value: '3',
|
|
|
|
|
label: '手持终端已校验单据'
|
|
|
|
|
}, {
|
|
|
|
|
value: '4',
|
|
|
|
|
label: 'UDIMS平台'
|
|
|
|
|
}, {
|
|
|
|
|
value: '5',
|
|
|
|
|
label: 'UDI扫码通'
|
|
|
|
|
}, {
|
|
|
|
|
value: '6',
|
|
|
|
|
label: '自助平台同步'
|
|
|
|
|
}, {
|
|
|
|
|
value: '7',
|
|
|
|
|
label: '缺量补单'
|
|
|
|
|
}, {
|
|
|
|
|
value: '8',
|
|
|
|
|
label: '平衡补单'
|
|
|
|
|
}],
|
|
|
|
|
value2: [],
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|