|
|
|
@ -51,116 +51,54 @@
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-descriptions class="margin-top" title="上传至第三方系统" :column="1" style="margin-top: 30px"
|
|
|
|
|
border>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
单据时间
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="20" class="el-col">
|
|
|
|
|
<div>
|
|
|
|
|
<span>上传起始时间: </span>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
type="date"
|
|
|
|
|
v-model="configQuery.orderStartTime"
|
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:disabled="configQuery.autoUpload"
|
|
|
|
|
placeholder="选择日期">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
单据(单据状态)
|
|
|
|
|
</template>
|
|
|
|
|
<el-checkbox v-model="configQuery.orderUnCheck" :disabled="configQuery.autoUpload">待校验单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.orderUnReceive" :disabled="configQuery.autoUpload">未验收单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.orderScanFinish" :disabled="configQuery.autoUpload">已完成单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
单据来源
|
|
|
|
|
<div style="float: right;margin-bottom: 10px;margin-right: 25px;margin-top: 18px">
|
|
|
|
|
<el-button type="primary" size="small"
|
|
|
|
|
:disabled="configQuery.autoUpload"
|
|
|
|
|
@click="addBusTypeDialog()">添加扫码单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="checkedBusTypes"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据类型"
|
|
|
|
|
prop="name"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据类型代码"
|
|
|
|
|
prop="action"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据状态"
|
|
|
|
|
prop=""
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="printUpload(scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="removeBus(scope.$index, scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkWebNew">web端新增单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkPdaUn">手持终端未校验单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkPdaEd">手持终端已校验单据
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkUdims">UDIMS平台
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkPc">UDI扫码通</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkSp">自助平台同步</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkChange">缺量补单
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="configQuery.checkBalacne">平衡补单
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="单据(单据类型)" label-style="width: 150px">
|
|
|
|
|
|
|
|
|
|
<div style="float: right;margin-bottom: 10px;margin-right: 25px">
|
|
|
|
|
<el-button type="primary" size="small"
|
|
|
|
|
:disabled="configQuery.autoUpload"
|
|
|
|
|
@click="addBusTypeDialog()">添加扫码单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="checkedBusTypes"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据类型"
|
|
|
|
|
prop="name"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据类型代码"
|
|
|
|
|
prop="action"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="单据状态"
|
|
|
|
|
prop=""
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="printUpload(scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="removeBus(scope.$index, scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
@ -214,7 +152,6 @@
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
@ -230,7 +167,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import modifyDialog from "./uploadModify";
|
|
|
|
|
import {getBusTypeList} from "@/api/basic/busType";
|
|
|
|
|
import {getConfig, saveConfig, updateConfig} from "@/api/thrsys/thrUploadSet";
|
|
|
|
|
import {addBus, getBusList, getConfig, saveConfig, updateConfig} from "@/api/thrsys/thrUploadSet";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
import {filterListInvoice} from "@/api/inout/orderDetailBiz";
|
|
|
|
|
import {updateBasicThirdSys} from "@/api/thrsys/basicThirdSys";
|
|
|
|
@ -238,14 +175,6 @@ import modifyDetailDialog from "@/views/thirdSys/api/BasicThirdSysDetailModify";
|
|
|
|
|
import DialogEditBusUpload from "@/views/thirdSys/api/DialogEditBusUpload";
|
|
|
|
|
import DialogEditBusDown from "@/views/thirdSys/api/DialogEditBusDown";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
site_id: "",
|
|
|
|
|
site_name: "",
|
|
|
|
|
describe: "",
|
|
|
|
|
ads: [],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "uploadSetting",
|
|
|
|
|
data() {
|
|
|
|
@ -346,7 +275,7 @@ export default {
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.getBuType();
|
|
|
|
|
this.Updocument = false;
|
|
|
|
|
// this.modifyBusYypeDialogVisible = false;
|
|
|
|
|
// this.modifyBusYypeDialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -362,26 +291,39 @@ export default {
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取已选入单据类型
|
|
|
|
|
getSelectBus() {
|
|
|
|
|
getBusList().then((res) => {
|
|
|
|
|
if (res.code == 20000)
|
|
|
|
|
this.checkedBusTypes = res.data;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getConfig() {
|
|
|
|
|
getConfig().then((res) => {
|
|
|
|
|
this.configQuery = res.data;
|
|
|
|
|
this.checkedBusTypes = this.configQuery.busTypes;
|
|
|
|
|
if (this.configQuery.busTypes === null) {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.list = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addBusType() {
|
|
|
|
|
let selectedData = this.multipleSelection;
|
|
|
|
|
selectedData.forEach((item) => {
|
|
|
|
|
item.outChange = false;
|
|
|
|
|
this.checkedBusTypes.push(item);
|
|
|
|
|
})
|
|
|
|
|
this.addBusDialogVisible = false;
|
|
|
|
|
let query = {
|
|
|
|
|
busTypes: selectedData,
|
|
|
|
|
};
|
|
|
|
|
addBus(query).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.checkedBusTypes = this.res.data;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
handleCheckedChange(row) {
|
|
|
|
|
this.multipleSelection = row;
|
|
|
|
@ -410,6 +352,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getBuType();
|
|
|
|
|
this.getSelectBus();
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|