Merge remote-tracking branch 'origin/master'

prod
schry 2 years ago
commit abaa200ed9

@ -41,6 +41,14 @@ 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",

@ -141,17 +141,18 @@
:limit="1" :limit="1"
:headers="headers" :headers="headers"
:on-exceed="uploadHandleExceed" :on-exceed="uploadHandleExceed"
accept=".jpg,.png,.pdf,.doc" accept=".jpg,.png"
:on-change="uploadOnchange" :on-change="uploadOnchange"
:on-success="uploadHandleSuccess" :on-success="uploadHandleSuccess"
:on-error="uploadHandleError" :on-error="uploadHandleError"
:on-before="uploadHandleBefore"
:file-list="fileList" :file-list="fileList"
:data="{type:'image2'}" :data="{type:'image2'}"
:auto-upload="true"> :auto-upload="true">
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1"> <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile }} {{ choiceFile }}
</el-button> </el-button>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 10 MB</div> <div>只能上传 jpg,png 文件且不超过 10 MB</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -172,6 +173,61 @@
</el-row> </el-row>
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>冷链报告上传</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item>
<el-upload
:disabled="formData.auditStatus == 1"
class="upload-demo"
ref="upload"
:action="this.uploadUrl"
:on-preview="uploadHandlePreview"
:on-remove="uploadHandleRemove1"
:limit="1"
:headers="headers"
:on-exceed="uploadHandleExceed"
accept=".jpg,.png"
:on-change="uploadOnchange1"
:on-success="uploadHandleSuccess1"
:on-error="uploadHandleError"
:on-before="uploadHandleBefore"
:file-list="fileList"
:data="{type:'image2'}"
:auto-upload="true">
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile1 }}
</el-button>
<div>只能上传 jpg,png 文件且不超过 10 MB</div>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="3">
<div class="ao-text" v-if="this.inputQuery.coldFilePath!=null">
<span>冷链报告预览</span>
</div>
</el-col>
<el-col :span="8">
<el-button type="primary" size="mini" icon="search" v-if="this.inputQuery.coldFilePath!=null"
style="text-align:right" @click="showImgViewerCold">
冷链报告预览
</el-button>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/>
</el-col>
</el-row>
</el-card> </el-card>
</el-form> </el-form>
@ -181,8 +237,7 @@
<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 {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";
@ -208,9 +263,10 @@ export default {
data() { data() {
return { return {
imgList: [], imgList: [],
imgListCold:[],
imgViewerVisible: false, imgViewerVisible: false,
imgViewerVisibleCold:false,
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
IMAGE_URL: process.env.VUE_APP_SYNC_API,
code: "", code: "",
formData: { formData: {
ggxh: "", ggxh: "",
@ -235,6 +291,7 @@ export default {
fileList: [], fileList: [],
headers: {}, headers: {},
choiceFile: "选取文件", choiceFile: "选取文件",
choiceFile1: "选取文件",
}; };
}, },
@ -243,7 +300,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",
@ -303,6 +360,11 @@ export default {
this.inputQuery.checkFileName = null; this.inputQuery.checkFileName = null;
console.log(file, fileList); console.log(file, fileList);
}, },
uploadHandleRemove1(file, fileList) {
this.inputQuery.coldFilePath = null;
this.inputQuery.checkColdFileName = null;
console.log(file, fileList);
},
uploadHandlePreview(file) { uploadHandlePreview(file) {
console.log(file); console.log(file);
console.log(this.fileList); console.log(this.fileList);
@ -337,6 +399,33 @@ export default {
} }
return isLt; return isLt;
}, },
uploadOnchange1(file, fileList) {
this.inputQuery.checkColdFileName = file.name;
let fileName = file.name;
let uid = file.uid
let pos = fileName.lastIndexOf(".");
let lastName = fileName.substring(pos, fileName.length);
if (lastName.toLowerCase() !== ".jpg" && lastName.toLowerCase() !== ".png" && lastName.toLowerCase() !== ".doc" && lastName.toLowerCase() !== ".pdf") {
this.$message.error("上传文件只能是 jpg,png,doc,pdf 格式");
for (let i = 0; i < fileList.length; i++) {//list
if (fileList[i].uid === uid) {
fileList.splice(i, 1)
}
}
return;
}
//
const isLt = file.size / 1024 / 1024 / 30 <= 1;
if (!isLt) {
this.$message.error("上传文件大小不能超过 30MB");
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].uid === uid) {
fileList.splice(i, 1)
}
}
}
return isLt;
},
uploadHandleSuccess(response, file, fileList) { uploadHandleSuccess(response, file, fileList) {
if (response.code === 20000) { if (response.code === 20000) {
this.inputQuery.filePath = response.data.name; this.inputQuery.filePath = response.data.name;
@ -345,10 +434,26 @@ export default {
this.$message.error("文件上传失败:" + response.message); this.$message.error("文件上传失败:" + response.message);
} }
}, },
uploadHandleSuccess1(response, file, fileList) {
if (response.code === 20000) {
this.inputQuery.coldFilePath = response.data.name;
// this.onSubmit();
} else {
this.$message.error("文件上传失败:" + response.message);
}
},
uploadHandleError() { uploadHandleError() {
}, },
uploadHandleBefore(file) {
console.log(file)
let isJPG = file.type === 'image/jpeg';
let isPNG = file.type === 'image/png';
if (!isJPG && !isPNG) {
this.$message.error('只能上传jpg或png格式');
}
return isJPG || isPNG;
},
showImgViewer(row) { showImgViewer(row) {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList = []; this.imgList = [];
@ -366,6 +471,24 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
showImgViewerCold(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList = [];
previewImage({imageUrl: this.inputQuery.coldFilePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList = response.data;
}
console.log(this.imgList)
this.imgViewerVisible = true;
});
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { const m = (e) => {
@ -375,6 +498,12 @@ export default {
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){
this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
}, },
filters: {}, filters: {},
@ -403,10 +532,16 @@ export default {
} else { } else {
this.choiceFile = "选取检验报告"; this.choiceFile = "选取检验报告";
} }
if (this.inputQuery.coldFilePath != null) {
this.choiceFile1 = "更换冷链报告";
} else {
this.choiceFile1 = "选取冷链报告";
}
}, },
}; };
</script> </script>
<style scoped> <style>
.ao-text { .ao-text {
width: 100%; width: 100%;

@ -655,7 +655,7 @@ export default {
this.curInvOptions.length > 0 && this.curInvOptions.length > 0 &&
this.orderFormData.invWarehouseCode == null this.orderFormData.invWarehouseCode == null
) { ) {
this.orderFormData.invCode = this.curInvOptions[0].code; //this.orderFormData.invCode = this.curInvOptions[0].code;
this.getBusTypeByInv(); this.getBusTypeByInv();
this.findCurSpaceList(this.orderFormData.invCode); this.findCurSpaceList(this.orderFormData.invCode);
} }
@ -1362,7 +1362,6 @@ export default {
if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) { if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) {
this.checkPreInArray = this.orderFormData.split(","); this.checkPreInArray = this.orderFormData.split(",");
} }
this.refreshCodesPanel(); this.refreshCodesPanel();
// //
this.findInvListByUser(); this.findInvListByUser();

@ -199,13 +199,13 @@
<el-button type="text" :disabled="scope.row.checkStatus==1" size="small" <el-button type="text" :disabled="scope.row.checkStatus==1" size="small"
@click.native.stop="determine(scope.row)">确认 @click.native.stop="determine(scope.row)">确认
</el-button> </el-button>
<!--<el-button--> <el-button
<!-- type="text"--> type="text"
<!-- size="small"--> size="small"
<!-- @click.native.stop="InvoiceRegister1(scope.row)"--> @click.native.stop="InvoiceRegister1(scope.row)"
<!--&gt;发票登记--> >发票登记
<!--</el-button--> </el-button
<!--&gt;--> >
<el-button <el-button
type="text" type="text"
@click="getNewInv(scope.row)" @click="getNewInv(scope.row)"

@ -273,6 +273,40 @@
prop="manufacturer" prop="manufacturer"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="检验报告"
width="160"
prop="filePath"
show-overflow-tooltip
>
<template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div>
</template>
</el-table-column>
<el-table-column
label="冷链报告"
width="160"
prop="coldFilePath"
show-overflow-tooltip
>
<template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewerCold(scope.row)">{{ scope.row.checkColdFileName }}</div>
</template>
</el-table-column>
<el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="upload(scope.row)"
v-if="scope.row.checkFileName != null"
>预览
</el-button
>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="bizTotal>0" v-show="bizTotal>0"
@ -364,6 +398,27 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/>
<el-dialog
title="检验报告"
:visible.sync="Upinvoice"
:before-close="freshen"
width="60%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="Upinvoice"
>
<DialogCheck
:closeDialog="closeCheckDialog"
:inputQuery="currentManufacturer"
></DialogCheck>
</el-dialog>
<el-dialog <el-dialog
title="根据当前单据生成新单据" title="根据当前单据生成新单据"
@ -397,6 +452,10 @@ import {getCodeDetailList} from "@/api/inout/orderDetailCode";
import {getCodeList} from "@/api/inout/code"; import {getCodeList} from "@/api/inout/code";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import DialogcChangeNewOrder from "@/views/inout/DialogcChangeNewOrder"; import DialogcChangeNewOrder from "@/views/inout/DialogcChangeNewOrder";
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
import DialogCheck from "@/views/inout/DialogCheck";
const formJson = { const formJson = {
@ -410,7 +469,14 @@ export default {
name: "IoAuditedOrder", name: "IoAuditedOrder",
data() { data() {
return { return {
BASE_URL: process.env.VUE_APP_BASE_API,
imgViewerVisible:false,
imgViewerVisibleCold:false,
currentManufacturer:{},
imgList:[],
imgListCold:[],
showSearch: true, showSearch: true,
Upinvoice:false,
filterQuery: { filterQuery: {
id: "", id: "",
billNo: null, billNo: null,
@ -529,7 +595,7 @@ export default {
curRow: null, curRow: null,
}; };
}, },
components: {DialogcChangeNewOrder}, components: {DialogcChangeNewOrder,ElImageViewer,DialogCheck},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -572,6 +638,72 @@ export default {
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
showImgViewer(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgList=[];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
}
console.log(this.imgList)
this.imgViewerVisible = true;
});
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
showImgViewerCold(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgListCold=[];
previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgListCold=response.data;
}
console.log(this.imgListCold)
this.imgViewerVisibleCold = true;
});
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
closeImgViewer(){
this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
closeImgViewerCold(){
this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
upload(row){
this.currentManufacturer = row;
this.Upinvoice = true;
},
freshen(){
this.Upinvoice = false;
this.getOrderDetails();
},
closeCheckDialog(){
this.Upinvoice = false;
this.getOrderDetails();
},
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },

@ -259,13 +259,25 @@
<el-table-column <el-table-column
label="检验报告" label="检验报告"
width="160" width="160"
prop="checkFileName" prop="filePath"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div> <div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="冷链报告"
width="160"
prop="coldFilePath"
show-overflow-tooltip
>
<template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewerCold(scope.row)">{{ scope.row.checkColdFileName }}</div>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -281,6 +293,9 @@
</el-table> </el-table>
<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-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/>
<pagination <pagination
v-show="bizTotal>0" v-show="bizTotal>0"
:total="bizTotal" :total="bizTotal"
@ -526,7 +541,9 @@ export default {
data() { data() {
return { return {
imgList: [], imgList: [],
imgListCold:[],
imgViewerVisible: false, imgViewerVisible: false,
imgViewerVisibleCold:false,
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
IMAGE_URL: process.env.VUE_APP_SYNC_API, IMAGE_URL: process.env.VUE_APP_SYNC_API,
showSearch: true, showSearch: true,
@ -722,6 +739,22 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
showImgViewerCold(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgListCold=[];
previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgListCold=response.data;
}
console.log(this.imgListCold)
this.imgViewerVisibleCold = true;
});
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { const m = (e) => {
@ -731,6 +764,13 @@ export default {
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){
this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
invChange() { invChange() {
this.filterQuery.action = null; this.filterQuery.action = null;
this.busTypes = []; this.busTypes = [];

@ -246,20 +246,34 @@
<el-table-column <el-table-column
label="检验报告" label="检验报告"
width="160" width="160"
prop="checkFileName" prop="filePath"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div> <div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="冷链报告"
width="160"
prop="coldFilePath"
show-overflow-tooltip
>
<template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewerCold(scope.row)">{{ scope.row.checkColdFileName }}</div>
</template>
</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 <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="upload(scope.row)" @click.native.stop="upload(scope.row)"
>检验报告 >预览
</el-button </el-button
> >
</template> </template>
@ -354,10 +368,12 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<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-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/>
<el-dialog <el-dialog
title="编辑" title="检验报告"
:visible.sync="Upinvoice" :visible.sync="Upinvoice"
:before-close="freshen" :before-close="freshen"
width="60%" width="60%"
@ -422,7 +438,9 @@ export default {
return { return {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
imgList: [], imgList: [],
imgListCold:[],
imgViewerVisible: false, imgViewerVisible: false,
imgViewerVisibleCold:false,
showSearch: true, showSearch: true,
Upinvoice: false, Upinvoice: false,
currentManufacturer: {}, currentManufacturer: {},
@ -615,6 +633,24 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
showImgViewerCold(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgListCold=[];
previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgListCold=response.data;
}
console.log(this.imgListCold)
this.imgViewerVisibleCold = true;
});
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { const m = (e) => {
@ -624,15 +660,24 @@ export default {
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){
this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
upload(row) { upload(row) {
this.currentManufacturer = row; this.currentManufacturer = row;
this.Upinvoice = true; this.Upinvoice = true;
}, },
closeCheckDialog() { closeCheckDialog() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.currentRow.billNo = val.billNo; this.currentRow.billNo = val.billNo;
this.getOrderDetails(); this.getOrderDetails();
@ -857,6 +902,7 @@ export default {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },
onResultReset() { onResultReset() {
this.resultQuery = { this.resultQuery = {
orderId: null, orderId: null,

@ -74,16 +74,44 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="采购说明:" prop="billNo"> <el-form-item
<el-input v-model="formData.remark" auto-complete="off" type="textarea" autosize></el-input> prop="supId"
label="供应商:"
>
<el-select
v-model="formData.supId"
filterable
remote
:disabled="corpOrderIdDisabled"
clearable
reserve-keyword
style="width: 90%"
placeholder="请选择供应商"
:remote-method="findMethod"
>
<el-option
v-for="item in fromOptions"
:key="item.erpId"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
</el-row>
<el-row> <el-row>
<el-col :span="11">
<el-form-item label="采购说明:" prop="remark">
<el-input v-model="formData.remark" auto-complete="off" type="textarea" autosize></el-input>
</el-form-item>
</el-col>
<el-col :span="11" v-show="formData.status==4"> <el-col :span="11" v-show="formData.status==4">
<el-form-item label="拒绝原因:"> <el-form-item label="拒绝原因:">
<el-input v-model="formData.auditRemark" auto-complete="off" :disabled="true"></el-input> <el-input v-model="formData.auditRemark" auto-complete="off" :disabled="true"></el-input>
@ -91,14 +119,16 @@
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-card> <el-card>
<el-row type="flex" justify="end"> <el-row type="flex" justify="end">
<el-button-group style="display: flex"> <el-button-group style="display: flex">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px"> <el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px">
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入</el-button> <el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入</el-button>
<!-- <el-button type="primary" :loading="loading" @click.native.stop="selectApply()">选入采购单</el-button>--> <!-- <el-button type="primary" :loading="loading" @click.native.stop="selectApply()">选入采购单</el-button>-->
</el-button-group> </el-button-group>
@ -151,6 +181,7 @@
:closeDialog="closeDialogC2" :closeDialog="closeDialogC2"
:purType="1" :purType="1"
:pId="pId" :pId="pId"
:supId="formData.supId"
:data="thisData" :data="thisData"
></purOrderProducts> ></purOrderProducts>
</el-dialog> </el-dialog>
@ -187,6 +218,7 @@ import {
import {filterSubByInv} from "@/api/system/invSubWarehouse"; import {filterSubByInv} from "@/api/system/invSubWarehouse";
import SelectPlanListDialog from "@/views/purchase/purPlan/selectPlanListDialog"; import SelectPlanListDialog from "@/views/purchase/purPlan/selectPlanListDialog";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
export default { export default {
name: "idQuery", name: "idQuery",
@ -221,9 +253,11 @@ export default {
deptCode: null, deptCode: null,
locStorageCode: null, locStorageCode: null,
invWarehouseCode: null, invWarehouseCode: null,
supId: null,
}, },
pId: null, pId: null,
formRules: {}, formRules: {},
fromOptions: [],
codeArray: [], codeArray: [],
total: 0, total: 0,
loading: false, loading: false,
@ -254,7 +288,9 @@ export default {
storageList: [], storageList: [],
invCodeList: [], invCodeList: [],
invQueryData: {}, invQueryData: {},
selectApplyVisible: false selectApplyVisible: false,
corpOrderIdDisabled: false,
}; };
}, },
watch: { watch: {
@ -341,6 +377,10 @@ export default {
}) })
}, },
selectProductFunction() { selectProductFunction() {
if (this.$isBlank(this.formData.supId)) {
this.$message.warning("请先选择供应商!");
return;
}
this.selectProductVisible = true; this.selectProductVisible = true;
//idid //idid
if (this.pId == null) { if (this.pId == null) {
@ -365,9 +405,11 @@ export default {
} }
selectOrderDetail(this.query) // selectOrderDetail(this.query) //
.then((response) => { .then((response) => {
console.log(response)
this.codeArray = response.data.list || []; this.codeArray = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
if (this.total > 0) {
this.corpOrderIdDisabled = true;
}
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {
@ -482,6 +524,28 @@ export default {
}) })
} }
}, },
//
findMethod(query) {
this.fromOptions = [];
let cQuery = {
key: query,
corpType: 2,
outType: null,
page: 1,
limit: 20,
};
getBasicUnitMaintains(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
},
}, },
filters: {}, filters: {},
mounted() { mounted() {
@ -499,7 +563,9 @@ export default {
this.formData = this.idQuery.formData; this.formData = this.idQuery.formData;
this.orderEditor = true; this.orderEditor = true;
this.sValue = this.formData.corpName; this.sValue = this.formData.corpName;
this.findMethod(this.formData.supId);
this.getStockOrderDetailList(); this.getStockOrderDetailList();
this.corpOrderIdDisabled = true;
} else { } else {
var date = new Date(); var date = new Date();
this.formData = { this.formData = {

@ -1,115 +1,120 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :model="listQuery" label-width="120px" v-show="showSearch"> <el-form :model="listQuery" label-width="120px" v-show="showSearch">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="UDI码:" class="query-form-item"> <el-form-item label="UDI码:" class="query-form-item">
<el-input v-model="listQuery.udiCode" style="width: 96%" placeholder="请扫描或输入UDI码" clearable="true" @keyup.enter.native="keyup_submit($event)"></el-input> <el-input v-model="listQuery.udiCode" style="width: 96%" placeholder="请扫描或输入UDI码" clearable="true"
</el-form-item> @keyup.enter.native="keyup_submit($event)"></el-input>
</el-col> </el-form-item>
<el-col :span="6"> </el-col>
<el-form-item label="第三方物资编码:" class="query-form-item"> <el-col :span="6">
<el-input v-model="listQuery.thrPiId" style="width: 90%" placeholder="请输入第三方物资编码" clearable="true"></el-input> <el-form-item label="第三方物资编码:" class="query-form-item">
</el-form-item> <el-input v-model="listQuery.thrPiId" style="width: 90%" placeholder="请输入第三方物资编码"
</el-col> clearable="true"></el-input>
</el-row> </el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="物品编码:" class="query-form-item"> <el-form-item label="物品编码:" class="query-form-item">
<el-input v-model="listQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码" clearable="true"></el-input> <el-input v-model="listQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"
</el-form-item> clearable="true"></el-input>
</el-col> </el-form-item>
<el-col :span="6"> </el-col>
<el-form-item label="产品通用名:" class="query-form-item"> <el-col :span="6">
<el-input v-model="listQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名" clearable="true"></el-input> <el-form-item label="产品通用名:" class="query-form-item">
</el-form-item> <el-input v-model="listQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名"
</el-col> clearable="true"></el-input>
<el-col :span="6"> </el-form-item>
<el-form-item label="规格型号:" class="query-form-item"> </el-col>
<el-input v-model="listQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input> <el-col :span="6">
</el-form-item> <el-form-item label="规格型号:" class="query-form-item">
</el-col> <el-input v-model="listQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>
<el-col :span="6"> </el-form-item>
<el-form-item label="生产企业:" class="query-form-item"> </el-col>
<el-input v-model="listQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人" <el-col :span="6">
clearable="true"></el-input> <el-form-item label="生产企业:" class="query-form-item">
</el-form-item> <el-input v-model="listQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"
</el-col> clearable="true"></el-input>
</el-row> </el-form-item>
</el-form> </el-col>
</el-row>
</el-form>
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="search"></el-button> <el-button type="primary" icon="el-icon-search" @click="search"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="confirmSelect"></el-button> <el-button type="primary" icon="el-icon-plus" @click="confirmSelect"></el-button>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row :row-class-name="tableRowClassName" @current-change="handleChange" ref="multipleTable"> <el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
<el-table-column label width="45"> :row-class-name="tableRowClassName" @current-change="handleChange" ref="multipleTable">
<template slot-scope="scope"> <el-table-column label width="45">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio> <template slot-scope="scope">
</template> <el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</el-table-column> </template>
<el-table-column label="序号" type="index"></el-table-column> </el-table-column>
<el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="物资编码" prop="thirdId" show-overflow-tooltip></el-table-column> <el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column>
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc"></el-table-column> <el-table-column label="物资编码" prop="thirdId" show-overflow-tooltip></el-table-column>
<el-table-column label="产品通用名" prop="cpmctymc" show-overflow-tooltip></el-table-column> <el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc"></el-table-column>
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column> <el-table-column label="产品通用名" prop="cpmctymc" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案凭证" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column> <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>
<el-table-column label="器械类别" prop="qxlb" show-overflow-tooltip></el-table-column> <el-table-column label="注册/备案凭证" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
<el-table-column label="配送企业" prop="companyName" show-overflow-tooltip></el-table-column> <el-table-column label="器械类别" prop="qxlb" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="160"> <el-table-column label="配送企业" prop="companyName" show-overflow-tooltip></el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" width="160">
<el-button type="text" size="small" @click.native.stop="handleDetailClick(scope.row)">详情</el-button> <template slot-scope="scope">
</template> <el-button type="text" size="small" @click.native.stop="handleDetailClick(scope.row)">详情</el-button>
</el-table-column> </template>
</el-table> </el-table-column>
</el-table>
<pagination <pagination
v-show="pageTotal>0" v-show="pageTotal>0"
:total="pageTotal" :total="pageTotal"
:page.sync="listQuery.page" :page.sync="listQuery.page"
:limit.sync="listQuery.limit" :limit.sync="listQuery.limit"
@pagination="handleErpPageChange" @pagination="handleErpPageChange"
></pagination> ></pagination>
</el-card> </el-card>
<el-dialog <el-dialog
title="耗材字典详情" title="耗材字典详情"
:visible.sync="udiRlDetailVisible" :visible.sync="udiRlDetailVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
append-to-body append-to-body
v-if="udiRlDetailVisible" v-if="udiRlDetailVisible"
> >
<udiRlDetailDialog :editQuery="currentRow"></udiRlDetailDialog> <udiRlDetailDialog :editQuery="currentRow"></udiRlDetailDialog>
</el-dialog> </el-dialog>
<el-dialog title="请选择对应的资质证书" :visible.sync="dialogFormVisible" append-to-body width="40%"> <el-dialog title="请选择对应的资质证书" :visible.sync="dialogFormVisible" append-to-body width="40%">
<el-form :model="form"> <el-form :model="form">
<el-form-item label="" prop="isGive"> <el-form-item label="" prop="isGive">
<el-radio-group v-model="currentCert"> <el-radio-group v-model="currentCert">
<el-radio :label="item" :key="item" v-for="item in certList">{{ item }}</el-radio> <el-radio :label="item" :key="item" v-for="item in certList">{{ item }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="selectCert"> </el-button> <el-button type="primary" @click="selectCert"> </el-button>
<el-button @click="dialogFormVisible = false"> </el-button> <el-button @click="dialogFormVisible = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -119,257 +124,262 @@ import {addOrderDetail} from "@/api/purchase/purOrder"
import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog"; import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog";
export default { export default {
name: "stockOrderNewSelectProduct", name: "stockOrderNewSelectProduct",
props: { props: {
data: { data: {
type: Object, type: Object,
required: true, required: true,
},
closeDialog: {
type: Function,
required: true,
},
purType: {
type: Object,
required: true,
},
pId: {
type: Object,
required: true,
},
}, },
closeDialog: {
type: Function,
required: true,
},
purType: {
type: Object,
required: true,
},
pId: {
type: Object,
required: true,
},
supId: {
type: Object,
required: true,
},
},
data() { data() {
return { return {
showSearch: true, showSearch: true,
listQuery: { listQuery: {
purType: null, purType: null,
udiCode: null, udiCode: null,
unicode: null, unicode: null,
cpmctymc: null, cpmctymc: null,
ggxh: null, ggxh: null,
ylqxzcrbarmc: null, ylqxzcrbarmc: null,
thrPiId: null, thrPiId: null,
page: 1, page: 1,
limit: 10, limit: 10,
},
combineQuery: {
thirdId: "",
relId: "",
erpName: "",
keys: [],
},
ids: [],
radioCheck: null,
dataList: [],
pageTotal: 1,
total: 1,
currentRow: null,
loading: false,
udiRlDetailVisible: false,
thirdSys: [],
thirdSysFk: null,
busTypes: [],
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
}, },
combineQuery: { },
thirdId: "", {
relId: "", text: "最近一个月",
erpName: "", onClick(picker) {
keys: [], const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
}, },
ids:[], },
radioCheck: null, {
dataList: [], text: "最近三个月",
pageTotal: 1, onClick(picker) {
total: 1, const end = new Date();
currentRow: null, const start = new Date();
loading: false, start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
udiRlDetailVisible: false, picker.$emit("pick", [start, end]);
thirdSys: [],
thirdSysFk: null,
busTypes: [],
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
}, },
orderEditor: false, },
orderId: "", ],
currentCert: null, },
certList: [], orderEditor: false,
dialogFormVisible: false, orderId: "",
multipleSelection: null, currentCert: null,
}; certList: [],
dialogFormVisible: false,
multipleSelection: null,
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.listQuery = {
purType: null,
udiCode: null,
unicode: null,
cpmctymc: null,
ggxh: null,
ylqxzcrbarmc: null,
thrPiId: null,
page: 1,
limit: 10
}
this.multipleSelection = [];
this.radioCheck = null;
this.currentRow = null;
this.getList();
}, },
methods: { hideSearch() {
onReset() { this.showSearch = !this.showSearch;
this.$router.push({ },
path: "", tableRowClassName({row}) {
}); if (row.checked) return "warning-row";
this.listQuery = { return "";
purType: null, },
udiCode: null, checkSelectable(row) {
unicode: null, return !row.check;
cpmctymc: null, },
ggxh: null, handleCurrentChange(val) {
ylqxzcrbarmc: null, this.unionQuery.page = val;
thrPiId: null, this.getList();
page: 1, },
limit: 10 handleChange(val) {
} this.radioCheck = val.id;
this.multipleSelection = []; this.currentRow = val;
this.radioCheck = null; this.multipleSelection = val
this.currentRow = null; },
this.getList(); handleDetailClick(row) {
}, this.currentRow = row;
hideSearch() { this.udiRlDetailVisible = true;
this.showSearch = !this.showSearch;
},
tableRowClassName({row}) {
if (row.checked) return "warning-row";
return "";
},
checkSelectable(row) {
return !row.check;
},
handleCurrentChange(val) {
this.unionQuery.page = val;
this.getList();
},
handleChange(val) {
this.radioCheck = val.id;
this.currentRow = val;
this.multipleSelection = val
},
handleDetailClick(row) {
this.currentRow = row;
this.udiRlDetailVisible = true;
}, },
handleErpPageChange(val) { handleErpPageChange(val) {
this.listQuery.page = val.page; this.listQuery.page = val.page;
this.getList(); this.getList();
}, },
keyup_submit(event) { keyup_submit(event) {
this.listQuery.page = 1; this.listQuery.page = 1;
this.getList(); this.getList();
event.target.select(); event.target.select();
}, },
search() { search() {
this.listQuery.page = 1; this.listQuery.page = 1;
this.getList(); this.getList();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
filterCompanyProductRelevance(this.listQuery) this.listQuery.unitFk = this.supId;
.then((response) => { filterCompanyProductRelevance(this.listQuery)
this.loading = false; .then((response) => {
if (response.code === 20000) { this.loading = false;
this.dataList = response.data.list || []; if (response.code === 20000) {
this.pageTotal = response.data.total || 0; this.dataList = response.data.list || [];
} else { this.pageTotal = response.data.total || 0;
this.$message.error(response.message); } else {
this.dataList = []; this.$message.error(response.message);
this.pageTotal = 0; this.dataList = [];
} this.pageTotal = 0;
}) }
.catch(() => { })
this.loading = false; .catch(() => {
this.dataList = []; this.loading = false;
this.pageTotal = 0; this.dataList = [];
}); this.pageTotal = 0;
}, });
intentBack() { },
this.closeDialog(); intentBack() {
}, this.closeDialog();
},
confirmSelect() { confirmSelect() {
if (this.multipleSelection == null) { if (this.multipleSelection == null) {
this.$message.error('未选择产品'); this.$message.error('未选择产品');
return; return;
} }
if(this.ids.length>0){ if (this.ids.length > 0) {
for(var i=0;i<this.ids.length;i++){ for (var i = 0; i < this.ids.length; i++) {
if(this.ids[i]==this.multipleSelection.rlId){ if (this.ids[i] == this.multipleSelection.rlId) {
this.$message.error("该产品已录入!"); this.$message.error("该产品已录入!");
return return
} }
} }
} }
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;
} else { } else {
this.combine(); this.combine();
} }
}, },
combine() { combine() {
this.loading = true; this.loading = true;
let tQuery = { let tQuery = {
productId:this.multipleSelection.rlId, productId: this.multipleSelection.rlId,
productName:this.multipleSelection.cpmctymc, productName: this.multipleSelection.cpmctymc,
count:1, count: 1,
orderIdFk:this.pId, orderIdFk: this.pId,
supId:this.multipleSelection.customerId, supId: this.multipleSelection.customerId,
zczbhhzbapzbh:this.multipleSelection.zczbhhzbapzbh zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
}; };
addOrderDetail(tQuery).then((response) => { addOrderDetail(tQuery).then((response) => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.closeDialog(response.data); this.closeDialog(response.data);
} else { } else {
if (response.code == 601) { if (response.code == 601) {
this.$alert(response.message, "提示", { this.$alert(response.message, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
});
} else
this.$message.error(response.message);
}
}).catch(() => {
this.loading = false;
}); });
} else
this.$message.error(response.message);
}
}).catch(() => {
this.loading = false;
});
}, },
selectCert() { selectCert() {
if (this.currentCert == null) { if (this.currentCert == null) {
this.$message.error("请先选择对应的注册证!"); this.$message.error("请先选择对应的注册证!");
}else{ } else {
this.multipleSelection.zczbhhzbapzbh = this.currentCert; this.multipleSelection.zczbhhzbapzbh = this.currentCert;
this.combine(); this.combine();
} }
},
}, },
components: {udiRlDetailDialog}, },
components: {udiRlDetailDialog},
created() { created() {
console.log(this.data) console.log(this.data)
if (this.$isNotBlank(this.data)) { if (this.$isNotBlank(this.data)) {
this.ids=[]; this.ids = [];
if(this.data.stockOrderLists.length>0){ if (this.data.stockOrderLists.length > 0) {
for(var i=0;i<this.data.stockOrderLists.length;i++){ for (var i = 0; i < this.data.stockOrderLists.length; i++) {
this.ids.push(this.data.stockOrderLists[i].productId); this.ids.push(this.data.stockOrderLists[i].productId);
}
}
} }
}
}
}, },
}; };
</script> </script>
@ -377,10 +387,10 @@ export default {
div /deep/ .el-table .warning-row { div /deep/ .el-table .warning-row {
background: #bebebe; background: #bebebe;
} }
div /deep/ .el-table .success-row { div /deep/ .el-table .success-row {
background: #ffffff; background: #ffffff;
} }
</style> </style>

Loading…
Cancel
Save