4 changed files with 1086 additions and 3 deletions
-
12src/api/base/site.js
-
3src/api/shopOrder/shopOrder.js
-
515src/views/modules/base/workCenter.vue
-
557src/views/modules/shopOrder/shopOrder/shopNotice.vue
@ -0,0 +1,557 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form |
||||
|
:inline="true" |
||||
|
label-position="top" |
||||
|
style="margin-top: 20px; position: fixed; top: 55px;left: 227px; z-index: 1000; background-color: white; padding: 10px; width: 100%;min-width: 1028px;max-width: 1292px;border: 3px solid #17B3A3;"> |
||||
|
|
||||
|
<el-form-item label="生产订单号(不支持模糊查询)"> |
||||
|
<el-input v-model="searchData.orderNo" style="width: 130px"></el-input> |
||||
|
<el-checkbox |
||||
|
v-model="searchData.status" |
||||
|
label="status" |
||||
|
style="margin-left: 10px" |
||||
|
true-label="有效" |
||||
|
false-label="无效" |
||||
|
> |
||||
|
仅查询有效的SOP |
||||
|
</el-checkbox> |
||||
|
<el-button @click="getDataList()" type="primary" style="margin-left: 2px;margin-top: 0px">查询</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<br></br> |
||||
|
<br></br> |
||||
|
<fieldset style="margin-top: 5px; width: 100%;min-width: 1020px"> |
||||
|
<legend>产品SOP信息</legend> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="客户" prop="uCustomer"> |
||||
|
<el-input v-model="modelData.uCustomer" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="机种" prop="uModel" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uModel" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="颜色标识" prop="uColorID" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uColorID" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="生产通知单" prop="docEntry" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.docEntry" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="日期" prop="postDate" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.postDate" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="客户料号" prop="uPn"> |
||||
|
<el-input v-model="modelData.uPn" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="二阶料号" prop="uPn2" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uPn2" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="样品卡号" prop="uSmplCard" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uSmplCard" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="交期" prop="dueDate" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.dueDate" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="库存数量" prop="onHand" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.onHand" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="料号" prop="itemCode"> |
||||
|
<el-input v-model="modelData.itemCode" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计划数量" prop="plannedQty" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.plannedQty + modelData.comments + modelData.uPackunit" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="制程" prop="uProcess" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uProcess" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="打样原因" prop="uStatus"> |
||||
|
<el-input v-model="modelData.uStatus" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="送样数量" prop="uBhbum" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uBhbum" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="尺寸" prop="uDimen" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uDimen" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="跳距" prop="docEntry" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.docEntry" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="包装方式" prop="uPackage" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uPackage" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="物料描述" prop="itemName"> |
||||
|
<el-input v-model="modelData.itemName" style="width: 480px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="R角" prop="uRangle" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uRangle" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="C角" prop="uCangle" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uCangle" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="注意事项" prop="uAttn"> |
||||
|
<el-input |
||||
|
type="textarea" |
||||
|
v-model="modelData.uAttn" |
||||
|
style="width: 480px" |
||||
|
:rows="3"> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="上下间距" prop="uUddist" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uUddist" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="左右间距" prop="uLrdist" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uLrdist" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="其他保证标识要求" prop="uPackDesp" style="margin-left: 15px"> |
||||
|
<el-input |
||||
|
type="textarea" |
||||
|
v-model="modelData.uPackDesp" |
||||
|
style="width: 140px" |
||||
|
:rows="7"> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;margin-left: 509px"> |
||||
|
<el-form-item label="边距" prop="uEdge"> |
||||
|
<el-input v-model="modelData.uEdge" style="width: 141px;"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="虚线" prop="uDotline" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uDotline" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="SIP" prop="uSip"> |
||||
|
<el-input v-model="modelData.uSip" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="样品卡" prop="uYangpinno" style="margin-left: 186px"> |
||||
|
<el-input v-model="modelData.uYangpinno" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="检查记录表" prop="uChSheet"> |
||||
|
<el-input v-model="modelData.uChSheet" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="刀模编号" prop="uMold"> |
||||
|
<el-input v-model="modelData.uMold" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="刀模仓位" prop="uMoldNo" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uMoldNo" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="刀模编号2" prop="uMold2" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uMold2" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="刀模2仓位" prop="uMoldNo2" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uMoldNo2" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="菲林编号" prop="uFilm"> |
||||
|
<el-input v-model="modelData.uFilm" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="网版编号" prop="uPlatenum" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uPlatenum" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="网版目数" prop="uPlate" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uPlate" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="模数" prop="uMoldQty" style="margin-left: 184px"> |
||||
|
<el-input v-model="modelData.uMoldQty" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item label="油墨型号" prop="uColor"> |
||||
|
<el-input v-model="modelData.uColor" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="UL型号" prop="uUl" style="margin-left: 15px"> |
||||
|
<el-input v-model="modelData.uUl" style="width: 310px"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</fieldset> |
||||
|
<p>BOM物料清单</p> |
||||
|
<el-table |
||||
|
:data="dataList" |
||||
|
:height="height - 230" |
||||
|
border |
||||
|
style="width: 100%;margin-top: -10px"> |
||||
|
<el-table-column prop="itemNo" label="序号" headerAlign="center" align="center" width="50px"></el-table-column> |
||||
|
<el-table-column prop="componentPartNo" label="物料号" headerAlign="center" width="170px" align="left"></el-table-column> |
||||
|
<el-table-column prop="partDesc" label="描述" headerAlign="center" align="left"></el-table-column> |
||||
|
<el-table-column prop="qtyRequired" label="计划数量" headerAlign="center" width="100px" align="right"></el-table-column> |
||||
|
<el-table-column prop="qtyOnHand" label="库存" headerAlign="center" width="100px" align="right"></el-table-column> |
||||
|
</el-table> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 0px;width: 100%;min-width: 1020px"> |
||||
|
<el-form-item label="ECN#" prop="uEcn"> |
||||
|
<el-input |
||||
|
type="textarea" |
||||
|
v-model="modelData.uEcn" |
||||
|
style="width: 310px" |
||||
|
:rows="3"> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="客诉履历" prop="uAttn2"> |
||||
|
<el-input |
||||
|
type="textarea" |
||||
|
v-model="modelData.uAttn2" |
||||
|
style="width: 310px" |
||||
|
:rows="3"> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="检查难度" prop="uCheck"> |
||||
|
<el-input v-model="modelData.uCheck" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="检查时间" prop="uCheckt"> |
||||
|
<el-input v-model="modelData.uCheckt" style="width: 141px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-checkbox |
||||
|
v-model="modelData.uAttach1" |
||||
|
style="margin-left: 10px;margin-top: 5px" |
||||
|
>附件</el-checkbox> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: -7px;margin-left: 955px"> |
||||
|
<el-checkbox |
||||
|
v-model="modelData.uAttach2" |
||||
|
style="margin-left: 10px" |
||||
|
>图纸</el-checkbox> |
||||
|
</el-form> |
||||
|
<el-form :inline="true" :model="modelData" label-position="top" label-width="100px" style="margin-top: 10px;margin-left: 955px"> |
||||
|
<el-checkbox |
||||
|
v-model="modelData.uAttach3" |
||||
|
style="margin-left: 10px" |
||||
|
>刀线</el-checkbox> |
||||
|
</el-form> |
||||
|
<p>SOP清单</p> |
||||
|
<el-table |
||||
|
:height="height - 170" |
||||
|
:data="sopFileList" |
||||
|
border |
||||
|
highlight-current-row |
||||
|
style="width: 100%;margin-top: -10px"> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnSopFileList" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
||||
|
style="width: 100px; height: 80px"/></span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import {shopNoticeSearch} from "../../../../api/shopOrder/shopOrder"; |
||||
|
|
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
height: 200, |
||||
|
dataList: [], |
||||
|
sopFileList: [], |
||||
|
searchData: { |
||||
|
site: this.$store.state.user.site, |
||||
|
userName: this.$store.state.user.name, |
||||
|
orderNo: '', |
||||
|
status: '有效', |
||||
|
}, |
||||
|
modelData: { |
||||
|
uCustomer: '', |
||||
|
uModel: '', |
||||
|
uColorID: '', |
||||
|
docEntry: '', |
||||
|
postDate: '', |
||||
|
uPn: '', |
||||
|
uPn2: '', |
||||
|
uSmplCard: '', |
||||
|
dueDate: '', |
||||
|
onHand: '', |
||||
|
itemCode: '', |
||||
|
plannedQty: '', |
||||
|
uProcess: '', |
||||
|
uStatus: '', |
||||
|
uBhbum: '', |
||||
|
uDimen: '', |
||||
|
uPackage: '', |
||||
|
itemName: '', |
||||
|
uRangle: '', |
||||
|
uCangle: '', |
||||
|
uAttn: '', |
||||
|
uUddist: '', |
||||
|
uLrdist: '', |
||||
|
uPackDesp: '', |
||||
|
uDotline: '', |
||||
|
uSip: '', |
||||
|
uYangpinno: '', |
||||
|
uChSheet: '', |
||||
|
uMold: '', |
||||
|
uMoldNo: '', |
||||
|
uMold2: '', |
||||
|
uMoldNo2: '', |
||||
|
uFilm: '', |
||||
|
uPlatenum: '', |
||||
|
uPlate: '', |
||||
|
uMoldQty: '', |
||||
|
uColor: '', |
||||
|
uUl: '', |
||||
|
uEcn: '', |
||||
|
uAttn2: '', |
||||
|
uCheck: '', |
||||
|
uCheckt: '', |
||||
|
uattach1: '', |
||||
|
uattach2: '', |
||||
|
uattach3: '', |
||||
|
uAttach1: false, |
||||
|
uAttach2: false, |
||||
|
uAttach3: false, |
||||
|
comments: '', |
||||
|
uPackunit: '', |
||||
|
uEdge: '', |
||||
|
}, |
||||
|
columnSopFileList:[ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4VersionNumber', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "versionNumber", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "版本号", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 50 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4FileName', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "fileName", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "文件名称", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 300 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4ResourceID', |
||||
|
tableId: "103004Table2", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "resourceInfo", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "机台编码(名称)", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 120 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4CreatedBy', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "createdBy", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "上传人", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 60 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4CreateDate', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "createDate", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "上传时间", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 120 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4EffectiveDate', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "effectiveDate", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "生效日期", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4ExpiryDate', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "expiryDate", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "失效日期", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 103004, |
||||
|
serialNumber: '103004Table4Status', |
||||
|
tableId: "103004Table3", |
||||
|
tableName: "SOP文件表", |
||||
|
columnProp: "status", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "状态", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 50 |
||||
|
}, |
||||
|
], |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$nextTick(() => { |
||||
|
this.height = window.innerHeight - 225; |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
getDataList() { |
||||
|
let inData = { |
||||
|
site: this.$store.state.user.site, |
||||
|
userName: this.$store.state.user.name, |
||||
|
orderNo: this.searchData.orderNo, |
||||
|
customer: this.searchData.customer, |
||||
|
} |
||||
|
this.dataList = [] |
||||
|
this.sopFileList = [] |
||||
|
shopNoticeSearch(inData).then(({data}) => { |
||||
|
if (data.code === 0) { |
||||
|
if ( data.rows1 !== null && data.rows1 !== undefined) { |
||||
|
data.rows1.uAttach1 = false |
||||
|
data.rows1.uAttach2 = false |
||||
|
data.rows1.uAttach3 = false |
||||
|
if (data.rows1.uattach1 === '有' || data.rows1.uattach1 === 'Y' || data.rows1.uattach1 === '样品') { |
||||
|
data.rows1.uAttach1 = true |
||||
|
} else if (data.rows1.uattach1 === '图纸') { |
||||
|
data.rows1.uAttach2 = true |
||||
|
} else if (data.rows1.uattach1 === '刀线') { |
||||
|
data.rows1.uAttach3 = true |
||||
|
} |
||||
|
if (data.rows1.uattach2 === '有' || data.rows1.uattach2 === 'Y' || data.rows1.uattach2 === '图纸') { |
||||
|
data.rows1.uAttach2 = true |
||||
|
}else if (data.rows1.uattach2 === '刀线') { |
||||
|
data.rows1.uAttach3 = true |
||||
|
} else if (data.rows1.uattach2 === '样品'){ |
||||
|
data.rows1.uAttach1 = true |
||||
|
} |
||||
|
if (data.rows1.uattach3 === '有' || data.rows1.uattach3 === 'Y' || data.rows1.uattach3 === '刀线') { |
||||
|
data.rows1.uAttach3 = true |
||||
|
} else if (data.rows1.uattach3 === '图纸') { |
||||
|
data.rows1.uAttach2 = true |
||||
|
} else if (data.rows1.uattach3 === '样品') { |
||||
|
data.rows1.uAttach1 = true |
||||
|
} |
||||
|
this.modelData = data.rows1 |
||||
|
} |
||||
|
this.dataList = data.rows2 |
||||
|
// 遍历sopFileList,将每个对象的orderRef4赋值给versionNumber |
||||
|
data.rows3.forEach((item) => { |
||||
|
item.versionNumber = item.orderRef4 |
||||
|
item.resourceInfo = item.orderRef3 + '(' + item.resourceDesc + ')' |
||||
|
if (item.expiryDate !== null) { |
||||
|
if (new Date(item.expiryDate) < new Date()) { |
||||
|
item.status = '失效' |
||||
|
} |
||||
|
else { |
||||
|
item.status = '有效' |
||||
|
} |
||||
|
} else { |
||||
|
item.status = '有效' |
||||
|
} |
||||
|
if (this.searchData.status === '有效'){ |
||||
|
if (item.status !== '失效'){ |
||||
|
this.sopFileList.push(item) |
||||
|
} |
||||
|
} else { |
||||
|
this.sopFileList.push(item) |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.right-align-input ::v-deep .el-input__inner { |
||||
|
text-align: right; |
||||
|
} |
||||
|
|
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue