发票修改,检验报告修改。

ywj_dev
anthonywj 2 years ago
parent 133c471532
commit 00eaeb1afc

@ -41,6 +41,15 @@ export function updateById(data) {
}); });
} }
export function updateBizById(data) {
return axios({
url: "/udiwms/inout/bizDetail/updateById",
method: "post",
data: data
});
}
export function insertInvoice(params) { export function insertInvoice(params) {
return axios({ return axios({
url: "/udiwms/inout/biz/insertInvoice", url: "/udiwms/inout/biz/insertInvoice",

@ -167,7 +167,8 @@
style="text-align:right" @click="showImgViewer"> style="text-align:right" @click="showImgViewer">
检验报告预览 检验报告预览
</el-button> </el-button>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
:url-list="imgList"/>
</el-col> </el-col>
@ -181,13 +182,12 @@
<script> <script>
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import store from "@/store"; import store from "@/store";
import {updateById} from '@/api/inout/orderDetailBiz' import {updateBizById, updateById} from '@/api/inout/orderDetailBiz'
import {updateOrderDetailBiz} from '@/api/inout/order' import {updateOrderDetailBiz} from '@/api/inout/order'
import {previewImage} from '@/api/purchase/supCompany' import {previewImage} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
export default { export default {
name: "DialogCheck", name: "DialogCheck",
props: { props: {
@ -243,7 +243,7 @@ export default {
}, },
methods: { methods: {
submitUpload() { submitUpload() {
updateById(this.inputQuery).then((res) =>{ updateBizById(this.inputQuery).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message({ this.$message({
type: "success", type: "success",
@ -367,14 +367,18 @@ export default {
console.log(this.imgList) console.log(this.imgList)
this.imgViewerVisible = true; this.imgViewerVisible = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },

@ -196,7 +196,9 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160" fixed="right"> <el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" :disabled="scope.row.checkStatus==1 " v-if="showSup" size="small" @click.native.stop="determine(scope.row)"></el-button> <el-button type="text" :disabled="scope.row.checkStatus==1 " v-if="showSup" size="small"
@click.native.stop="determine(scope.row)">确认
</el-button>
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -336,7 +338,10 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="发票代码" width="150"
prop="invoiceCode"
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="cpmctymc" width="150" prop="cpmctymc" width="150"
@ -357,10 +362,6 @@
prop="machineNo" prop="machineNo"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="发票代码" width="150"
prop="invoiceCode"
></el-table-column>
<el-table-column <el-table-column
label="发票编码" width="150" label="发票编码" width="150"
prop="invoiceEncode" prop="invoiceEncode"
@ -457,9 +458,6 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
:title="formMap[formName]" :title="formMap[formName]"
:visible.sync="InvoiceRegisterv" :visible.sync="InvoiceRegisterv"

@ -459,7 +459,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" label="目标单据状态"> <el-table-column width="180" label="同步后单据状态">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select style="width: 90%" <el-select style="width: 90%"
v-model="scope.row.syncStatus" v-model="scope.row.syncStatus"
@ -576,7 +576,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" label="目标单据状态"> <el-table-column width="180" label="同步后单据状态">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select style="width: 90%" <el-select style="width: 90%"
v-model="scope.row.syncStatus" v-model="scope.row.syncStatus"

Loading…
Cancel
Save