Commit c7f160fa authored by 仇晓婷's avatar 仇晓婷

复验ok

parent 7df5be74
<template>
<div class="h100 table-content1">
<div class="h100 table-content1">
<p class="mb10">
订单编号:{{mesCodes}}
<span class="ml20">产品名称:{{productNames}}</span>
<span class="ml20">生产数量:{{counts}}</span>
订单编号:{{ mesCodes }}
<span class="ml20">产品名称:{{ productNames }}</span>
<span class="ml20">生产数量:{{ counts }}</span>
<span class="fr mr20" v-if="false">
<a href="javascript:;">出库单</a>
</span>
......@@ -12,58 +12,120 @@
</span>
</p>
<div class="mb70" v-for="(item,i) in datas" :key="i">
<p class="fwBold">{{item.routingHeader}}------{{item.routingHeaderCode}}</p>
<Table border :columns="cols" :data="item.suport" :ref="'table'+item.routingHeaderId" class="tableCommon" @on-selection-change="selectionChange(i)" @on-select-cancel="selectListCancel" @on-select-all-cancel="selectAllCancel" @on-select="selectList" @on-select-all="selectListAll">
<div class="mb70" v-for="(item, i) in datas" :key="i">
<p class="fwBold">
{{ item.routingHeader }}------{{ item.routingHeaderCode }}
</p>
<Table
border
:columns="cols"
:data="item.suport"
:ref="'table' + item.routingHeaderId"
class="tableCommon"
@on-selection-change="selectionChange(i)"
@on-select-cancel="selectListCancel"
@on-select-all-cancel="selectAllCancel"
@on-select="selectList"
@on-select-all="selectListAll"
>
<template slot-scope="{ row, index }" slot="counts">
<InputNumber :max="row.totalCount-row.applicationNumber" :min="0" v-model="row.count" @on-change="inputChange1(i,row,index)" :disabled="row._disabled" />
<InputNumber
:max="row.totalCount - row.applicationNumber"
:min="0"
v-model="row.count"
@on-change="inputChange1(i, row, index)"
:disabled="row._disabled"
/>
</template>
<template slot-scope="{ row, index }" slot="remarks">
<Input type="text" v-model="row.remark" @on-change="inputChange1(i,row,index)" :disabled="row._disabled" />
<Input
type="text"
v-model="row.remark"
@on-change="inputChange1(i, row, index)"
:disabled="row._disabled"
/>
</template>
</Table>
</div>
<FooterToolbar v-show="footerToolbar" class="ftball pt10">
<!--<div class="tip">已选{{selectItems.length}}项</div>-->
<Form :model="orderForm" :inline="true" :label-width="0" ref="formValidate" :rules="ruleValidate">
<Form
:model="orderForm"
:inline="true"
:label-width="0"
ref="formValidate"
:rules="ruleValidate"
>
<FormItem prop="QuotationFinishDate">
<DatePicker v-model="orderForm.QuotationFinishDate" type="date" style="color:black" placeholder="请选择齐套日期" @on-change="getTimeQuotationFD"></DatePicker>
<DatePicker
v-model="orderForm.QuotationFinishDate"
type="date"
style="color: black"
placeholder="请选择齐套日期"
@on-change="getTimeQuotationFD"
></DatePicker>
</FormItem>
<FormItem l><Button type="primary" class="mr10 ml10" @click="application">申请配套</Button></FormItem>
<FormItem l
><Button type="primary" class="mr10 ml10" @click="application"
>申请配套</Button
></FormItem
>
</Form>
</FooterToolbar>
<Modal v-model="modalAccessoryList" :title="title" fullscreen footer-hide>
<component :is="detailAcc" :eid="orderId" :mesCode="mesCodes" :productName="productNames" :drawnNumber="drawnNumber" :count="counts" @on-close="cancel" @on-ok="onOk" />
<component
:is="detailAcc"
:eid="orderId"
:mesCode="mesCodes"
:productName="productNames"
:drawnNumber="drawnNumber"
:count="counts"
@on-close="cancel"
@on-ok="onOk"
/>
</Modal>
<Modal v-model="modalAccSet" title="临时设置" footer-hide width="800">
<Form :model="entity" :label-width="110" ref="formValidateSet" :rules="ruleValidate">
<Form
:model="entity"
:label-width="110"
ref="formValidateSet"
:rules="ruleValidate"
>
<Row>
<Col span="12">
<FormItem label="工序">{{entity.routingDetailName}}</FormItem>
<FormItem label="工序">{{ entity.routingDetailName }}</FormItem>
</Col>
<Col span="12">
<FormItem label="物料名">{{entity.materialName}}</FormItem>
<FormItem label="物料名">{{ entity.materialName }}</FormItem>
</Col>
<Col span="12">
<FormItem label="物料编号">{{entity.materialNumber}}</FormItem>
<FormItem label="物料编号">{{ entity.materialNumber }}</FormItem>
</Col>
<Col span="12">
<FormItem label="需求数量">{{entity.needCount}}</FormItem>
<FormItem label="需求数量">{{ entity.needCount }}</FormItem>
</Col>
<Col span="12">
<FormItem label="已申请">{{entity.applicationNumber}}</FormItem>
<FormItem label="已申请">{{ entity.applicationNumber }}</FormItem>
</Col>
<Col span="12">
<FormItem label="可再申请" prop="count">
<InputNumber :max="entity.needCount-entity.applicationNumber" :min="0" v-model="entity.count" />
<InputNumber
:max="entity.needCount - entity.applicationNumber"
:min="0"
v-model="entity.count"
/>
</FormItem>
</Col>
<Col span="12">
<FormItem label="齐套日期" prop="finishDate">
<DatePicker v-model="entity.finishDate" type="date" placeholder="请选择齐套日期" @on-change="getTimeFinish"></DatePicker>
<DatePicker
v-model="entity.finishDate"
type="date"
placeholder="请选择齐套日期"
@on-change="getTimeFinish"
></DatePicker>
</FormItem>
</Col>
<Col span="24">
......@@ -73,14 +135,16 @@
</Col>
<Col span="24">
<p class="fr">
<Button type="primary" class="mr10 ml10" @click="application1">申请配套</Button>
<Button type="primary" class="mr10 ml10" @click="application1"
>申请配套</Button
>
<Button @click="canelSet">取消</Button>
</p>
</Col>
</Row>
</Form>
</Modal>
</div>
</div>
</template>
<script>
......@@ -98,7 +162,8 @@ export default {
curId: 0,
editIndex: -1,
editNum: "",
cols: [{
cols: [
{
type: "selection",
width: 70,
align: "center",
......@@ -148,7 +213,8 @@ export default {
width: "120",
render: (h, params) => {
return h(
"op", {
"op",
{
attrs: {
oprate: "detail",
},
......@@ -157,9 +223,9 @@ export default {
},
},
params.row._disabled &&
params.row.totalCount - params.row.applicationNumber > 0 ?
"临时申请" :
""
params.row.totalCount - params.row.applicationNumber > 0
? "临时申请"
: ""
);
},
},
......@@ -177,22 +243,28 @@ export default {
counts: this.count,
curArr: 0, //标记当前操作工艺规程列表是否为空
ruleValidate: {
QuotationFinishDate: [{
QuotationFinishDate: [
{
required: true,
message: "_",
trigger: "change",
}, ],
finishDate: [{
},
],
finishDate: [
{
required: true,
message: "请选择齐套日期",
trigger: "change",
}, ],
count: [{
},
],
count: [
{
required: true,
message: "请输入申请数量",
type: "number",
trigger: "change",
}, ],
},
],
},
tempList: [],
cRow: null,
......@@ -219,20 +291,18 @@ export default {
productName: String,
drawnNumber: String,
count: Number,
productingPreparationPeople: Number,
},
mounted() {
this.load(this.eid);
},
async fetch({
store,
params
}) {
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
load(v) {
Api.matchdetaillist({
id: v
id: v,
}).then((r) => {
if (r.success) {
r.result.forEach((e) => {
......@@ -367,6 +437,7 @@ export default {
creator: this.$store.state.userInfo.userName,
finishDate: this.orderForm.QuotationFinishDate,
orderCode: this.mesCode,
productingPreparationPeople: this.productingPreparationPeople,
},
items: temItems,
};
......
<template>
<div class="h100">
<DataGrid :columns="columns" ref="grid" :action="action" @on-selection-change="selectInfo" :batch="false">
<div class="h100">
<DataGrid
:columns="columns"
ref="grid"
:action="action"
@on-selection-change="selectInfo"
:batch="false"
>
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
<Input search enter-button placeholder="请输入关键字订单编号/项目名称" v-model="easySearch.keys.value" v-width="300" @on-search="search" />
<Input
search
enter-button
placeholder="请输入关键字订单编号/项目名称"
v-model="easySearch.keys.value"
v-width="300"
@on-search="search"
/>
</FormItem>
</Form>
</template>
<template slot="searchBack">
<Badge :count="this.$store.state.countAps" overflow-count="99" style="margin-right:15px;" type="info" v-if="showAps">
<Badge
:count="this.$store.state.countAps"
overflow-count="99"
style="margin-right: 15px"
type="info"
v-if="showAps"
>
<a href="javascript:;" @click="goAps">APS排产&nbsp;&nbsp;&nbsp;</a>
</Badge>
<Badge :count="this.$store.state.countAi" overflow-count="99" style="margin-right:15px;" type="info" v-if="showAi">
<Badge
:count="this.$store.state.countAi"
overflow-count="99"
style="margin-right: 15px"
type="info"
v-if="showAi"
>
<a href="javascript:;" @click="goAi">智能排产&nbsp;&nbsp;&nbsp;</a>
</Badge>
<Badge :count="this.$store.state.countAll" overflow-count="99" style="margin-right:15px;" type="info" v-if="showAll">
<Badge
:count="this.$store.state.countAll"
overflow-count="99"
style="margin-right: 15px"
type="info"
v-if="showAll"
>
<a @click="goCemplate">整机排产&nbsp;&nbsp;&nbsp;</a>
</Badge>
<Badge :count="this.$store.state.countRun" overflow-count="99" type="info" v-if="showRun">
<Badge
:count="this.$store.state.countRun"
overflow-count="99"
type="info"
v-if="showRun"
>
<a @click="goStream">流水排产&nbsp;&nbsp;&nbsp;</a>
</Badge>
</template>
......@@ -29,11 +65,15 @@
</DataGrid>
<FooterToolbar extra v-if="footerBar" class="ftball">
<Row>
<Checkbox @on-change="handleSelectAll(single)" v-model="single">全选</Checkbox>
<span class="footerSpan">已选 {{selectCount}} 项</span>
<Checkbox @on-change="handleSelectAll(single)" v-model="single"
>全选</Checkbox
>
<span class="footerSpan">已选 {{ selectCount }} 项</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<Button type="primary" @click="modalDispatch">工艺派发</Button>&nbsp;&nbsp;&nbsp;&nbsp;
<Button type="primary" @click="modalSchedule">移入排产</Button>&nbsp;&nbsp;&nbsp;&nbsp;
<Button type="primary" @click="modalDispatch">工艺派发</Button
>&nbsp;&nbsp;&nbsp;&nbsp;
<Button type="primary" @click="modalSchedule">移入排产</Button
>&nbsp;&nbsp;&nbsp;&nbsp;
<Button @click="canselFooter">取消</Button>
</Row>
</FooterToolbar>
......@@ -46,7 +86,12 @@
<Modal v-model="detailModal" title="详情">
<Detail :eid="curId" />
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
<Modal
v-model="deletelModal"
title="删除"
@on-ok="removeOk"
@on-cancel="cancel"
>
<p>确定删除?</p>
</Modal>
<Modal v-model="dispatchModal" title="工艺派发" footer-hide width="800">
......@@ -65,11 +110,15 @@
@on-change="onchangeScheduleType"
></Dictionary>
-->
<RadioGroup v-model="scheduleType" class="radioList" @on-change="onchangeScheduleType">
<Radio :label="1" border :disabled="this.$store.state.countAi>0">
<RadioGroup
v-model="scheduleType"
class="radioList"
@on-change="onchangeScheduleType"
>
<Radio :label="1" border :disabled="this.$store.state.countAi > 0">
<span>Aps排产</span>
</Radio>
<Radio :label="4" border :disabled="this.$store.state.countAps>0">
<Radio :label="4" border :disabled="this.$store.state.countAps > 0">
<span>智能排产</span>
</Radio>
<Radio :label="2" border>
......@@ -79,10 +128,11 @@
<span>流水排产</span>
</Radio>
</RadioGroup>
<p class="pl30 pt10" v-show="scheduleType!=null">
<p class="pl30 pt10" v-show="scheduleType != null">
确定将订单
<span class="fwBold">{{resultsOrderList}}</span> 移入
<span class="red fwBold">{{scheduleTypeName}}</span>
<span class="fwBold">{{ resultsOrderList }}</span> 移入
<span class="red fwBold">{{ scheduleTypeName }}</span
>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
......@@ -91,13 +141,28 @@
<Button type="primary" @click="scheduleOk">确定</Button>
</div>
</Modal>
<Modal v-model="orderSupportModal" title="配套下发" footer-hide width="1300">
<Modal
v-model="orderSupportModal"
title="配套下发"
footer-hide
width="1300"
>
<orderSupport ref="orderSupport"></orderSupport>
</Modal>
<Modal v-model="modalAccessory" :title="title" fullscreen footer-hide>
<component :is="details" :eid="orderId" :mesCode="mesCode" :productName="productName" :drawnNumber="drawnNumber" :count="count" @on-close="cancel" @on-ok="addOk" />
<component
:is="details"
:eid="orderId"
:mesCode="mesCode"
:productName="productName"
:drawnNumber="drawnNumber"
:productingPreparationPeople="productingPreparationPeople"
:count="count"
@on-close="cancel"
@on-ok="addOk"
/>
</Modal>
</div>
</div>
</template>
<script>
......@@ -121,6 +186,7 @@ export default {
data() {
return {
action: Api.index,
productingPreparationPeople: 0,
easySearch: {
keys: {
op: "mesCode,projectNumber",
......@@ -135,7 +201,8 @@ export default {
scheduleModal: false,
orderSupportModal: false,
curId: 0,
statuList: this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [],
statuList:
this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [],
name: "",
items: null,
title: "",
......@@ -148,9 +215,10 @@ export default {
drawnNumber: "",
count: 0,
modalAccessory: false,
columns: [{
columns: [
{
key: "selection",
title: '多选',
title: "多选",
type: "selection",
width: 50,
align: "center",
......@@ -190,7 +258,8 @@ export default {
align: "center",
render: (h, params) => {
return h(
"op", {
"op",
{
attrs: {
oprate: "detail",
},
......@@ -273,7 +342,7 @@ export default {
align: "left",
easy: true,
high: true,
hide: true
hide: true,
},
{
key: "productingPreparationPeople",
......@@ -281,14 +350,14 @@ export default {
align: "left",
high: true,
hide: true,
type: 'workShopName'
type: "workShopName",
},
{
key: "productingPreparationFinishDate",
title: this.l("productingPreparationFinishDate"),
align: "left",
high: true,
hide: true
hide: true,
},
{
key: "quotationPeople",
......@@ -296,14 +365,14 @@ export default {
align: "left",
high: true,
hide: true,
type: "user"
type: "user",
},
{
key: "quotationFinishDate",
title: this.l("quotationFinishDate"),
align: "left",
high: true,
hide: true
hide: true,
},
{
key: "demandStartDate",
......@@ -311,7 +380,7 @@ export default {
align: "left",
high: true,
hide: true,
type: "date"
type: "date",
},
{
key: "demandFinishDate",
......@@ -319,7 +388,7 @@ export default {
align: "left",
high: true,
hide: true,
type: "date"
type: "date",
},
// {
// key: "spareQty",
......@@ -356,15 +425,21 @@ export default {
width: 140,
align: "center",
render: (h, params) => {
return h("div", {
class: "action"
}, [
return h(
"div",
{
class: "action",
},
[
h(
"op", {
"op",
{
attrs: {
oprate: "detail",
title: params.row.mainRoutingSetStatus == 0 ?
"工艺派发" : "移入排产",
title:
params.row.mainRoutingSetStatus == 0
? "工艺派发"
: "移入排产",
},
style: {
color: params.row.mainRoutingSetStatus == 0 ? "red" : "",
......@@ -372,23 +447,29 @@ export default {
on: {
click: () =>
params.row.mainRoutingSetStatus == 0 ||
params.row.mainRoutingSetStatus == 1 ?
this.goMethod(params.row) : null,
},
},
params.row.mainRoutingSetStatus == 0 && params.row.isPreschedule == 0 ?
"工艺派发" :
params.row.mainRoutingSetStatus == 1 && params.row.isPreschedule == 0 ?
"移入排产" :
""
params.row.mainRoutingSetStatus == 1
? this.goMethod(params.row)
: null,
},
},
params.row.mainRoutingSetStatus == 0 &&
params.row.isPreschedule == 0
? "工艺派发"
: params.row.mainRoutingSetStatus == 1 &&
params.row.isPreschedule == 0
? "移入排产"
: ""
),
h(
"op", {
"op",
{
attrs: {
oprate: "detail",
title: params.row.isSupportingFinish == 2 ||
params.row.isSupportingFinish == 3 ?
"配套派发" : "",
title:
params.row.isSupportingFinish == 2 ||
params.row.isSupportingFinish == 3
? "配套派发"
: "",
},
style: {
color: params.row.mainRoutingSetStatus == 0 ? "red" : "",
......@@ -396,16 +477,18 @@ export default {
on: {
click: () =>
params.row.isSupportingFinish == 2 ||
params.row.isSupportingFinish == 3 ?
this.supportDis(params.row) : null,
params.row.isSupportingFinish == 3
? this.supportDis(params.row)
: null,
},
},
params.row.isSupportingFinish == 2 ||
params.row.isSupportingFinish == 3 ?
"配套派发" :
""
params.row.isSupportingFinish == 3
? "配套派发"
: ""
),
]);
]
);
},
},
],
......@@ -433,10 +516,7 @@ export default {
mounted() {
this.loadInitCount();
},
async fetch({
store,
params
}) {
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
......@@ -457,13 +537,13 @@ export default {
let statueArry = [];
let tempmesCodeList = [];
this.resultsStatusArr = [];
this.isPrescheduleStatu = 0
this.isPrescheduleStatu = 0;
value.forEach((data) => {
var that = this;
statueArry.push(data.id);
this.resultsStatusArr.push(data.mainRoutingSetStatus);
if (data.isPreschedule == 2) {
this.isPrescheduleStatu = 2
this.isPrescheduleStatu = 2;
}
tempmesCodeList.push(data.mesCode);
});
......@@ -653,7 +733,7 @@ export default {
},
removeOk() {
Api.delete({
id: this.curId
id: this.curId,
}).then((r) => {
if (r.success) {
this.$refs.grid.load();
......@@ -732,7 +812,7 @@ export default {
loadInitCount() {
let currentUserId = this.$store.state.userInfo.userId;
let para = {
id: currentUserId
id: currentUserId,
};
Api.listbyuser(para).then((datas) => {
if (datas.success && datas.result && datas.result.length > 0) {
......@@ -803,6 +883,8 @@ export default {
this.productName = row.productName;
this.drawnNumber = row.drawnNumber;
this.count = row.quantity;
this.productingPreparationPeople = row.productingPreparationPeople;
if (row.mainRoutingSetStatus == 1 && row.isSupportingFinish == 0) {
this.$Message.error("请去工艺设置生成料单!");
// this.title = "申请配套";
......
import Api from '@/plugins/request'
export default {
index:`${resourceUrl}/materialpowder/itempaged`,
index:`${material}/material/paged`,
paged(params){
return Api.post(`${resourceUrl}/materialpowder/itempaged`,params);
return Api.post(`${material}/material/paged`,params);
},
get(params){
return Api.get(`${resourceUrl}/materialpowder/get`,params);
return Api.get(`${material}/materialpowder/get`,params);
},
create(params){
return Api.post(`${resourceUrl}/materialpowder/create`,params);
return Api.post(`${material}/materialpowder/create`,params);
},
update(params){
return Api.post(`${resourceUrl}/materialpowder/update`,params);
return Api.post(`${material}/materialpowder/update`,params);
},
//删除:
delete(params) {
return Api.delete(`${resourceUrl}/materialpowder/delete`,{params:params});
return Api.delete(`${material}/materialpowder/delete`,{params:params});
},
}
\ No newline at end of file
<template>
<div>
<DataGrid :columns="columns" ref="grid" :high='false' :action="action" :conditions="easySearch"></DataGrid>
<DataGrid
:columns="columns"
ref="grid"
:high="false"
:action="action"
:conditions="easySearch"
></DataGrid>
</div>
</template>
<script>
import Api from '../api'
import Api from "../api";
export default {
// name: 'list',
// components:{
......@@ -18,145 +24,157 @@ export default {
detailModal: false,
deletelModal: false,
easySearch: {
keys: { op: 'brand,name', value: '',default:true },
reinspectionStatus: { op: 'Equal', value: 3 }
keys: { op: "brand,name", value: "", default: true },
reinspectionStatus: { op: "Equal", value: 1 },
},
curId: 0,
columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' },
{
key: 'brand',
title: this.l('brand'),
align: 'left',
easy: true,
high: true
},
{ key: "id", title: this.l("id"), hide: true, align: "left" },
{
key: 'name',
title: this.l('name'),
align: 'left',
easy: true,
high: true
},
key: "codeRuleType",
title: "类型",
align: "center",
code: "material.code.type",
import: true,
hide: true,
},
// {
// key: "codeRuleId",
// title: "编码名称",
// materialKey: "3",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType3(params.row.codeRuleId));
// },
// },
// {
// key: "rootCategoryId",
// title: "大类",
// align: "right",
// materialKey: "1",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType1(params.row.rootCategoryId));
// },
// },
// {
// key: "categoryId",
// title: "子类",
// align: "right",
// materialKey: "2",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType2(params.row.categoryId));
// },
// },
{
key: 'specifications',
title: this.l('specifications'),
align: 'left',
easy: true,
high: true
},
key: "code",
title: "编码",
align: "left",
render: (h, params) => {
return h(
"div",
{
key: 'batchNo',
title: this.l('batchNo'),
align: 'left',
easy: true,
high: true,
hide:true,
props: {},
on: {
click: () => this.details(params.row),
},
{
key: 'originalManufacturer',
title: this.l('originalManufacturer'),
align: 'left',
easy: true,
high: true,
hide:true,
},
{
key: 'reinspectionDate',
title: this.l('reinspectionDate'),
align: 'left',
render: (h, paras) => {
return h('span', paras.row.reinspectionDate)
!params.row.code || params.row.code == 0
? "未分配"
: params.row.code
);
},
high: true,
width:180,
},
{
key: 'remainingAmount',
title: this.l('remainingAmount'),
align: 'left',
high: true
key: "name",
title: "名称",
align: "left",
},
{
key: 'storeId',
title: this.l('storeId'),
align: 'left',
render: (h, paras) => {
return h('span', paras.row.storeId)
key: "status",
title: "状态",
align: "center",
code: "material.main.status",
},
high: true
{
key: "version",
title: "版本",
align: "left",
code: "material.main.version",
},
{
key: 'location',
title: this.l('location'),
align: 'left',
easy: true,
high: true
key: "drawing",
title: "图号",
align: "left",
},
{
key: 'category',
title: this.l('category'),
align: 'center',
high: true,
code: 'mes_xingchi_resource.material.powderType'
key: "creationTime",
title: "创建时间",
hide: true,
align: "left",
type: "date",
},
{
key: 'reinspectionStatus',
title: this.l('reinspectionStatus'),
align: 'center',
code: 'mes_xingchi_resource.material.recheckState',
easy: true,
high: true
key: "creatorUserId",
title: "创建人",
hide: true,
align: "left",
type: "user",
},
// render:(h,paras)=>{return h('span',paras.row.reinspectionStatus)} ,
{
title: '操作',
key: 'id',
title: "操作",
key: "id",
width: 150,
align: 'center',
align: "center",
render: (h, params) => {
// let herfurl = params.row.certificateUploadPath;
return h('div', { class: 'action' }, [
return h("div", { class: "action" }, [
h(
'op',
"op",
{
attrs:{
oprate:'detail'
} ,
class: 'view',
on: { click: () => {
this.detail(params.row)
} }
attrs: {
oprate: "detail",
},
class: "view",
on: {
click: () => {
this.detail(params.row);
},
},
'查看复验单'
)
])
}
}
]
}
},
mounted() {
"查看复验单"
),
]);
},
},
],
};
},
mounted() {},
methods: {
reload(){
this.$refs.grid.load()
reload() {
this.$refs.grid.load();
},
detail(row) {
let ssdata = row.certificateUploadPath
if(this.$u.isNull(ssdata)){
this.$Message.warning('复验单为空!')
}else{
var item=JSON.parse(ssdata)[0]["filePath"],
let ssdata = row.certificateUploadPath;
if (this.$u.isNull(ssdata)) {
this.$Message.warning("复验单为空!");
} else {
var item = JSON.parse(ssdata)[0]["filePath"],
url = fileUrlDown + item;
window.open(url)
window.open(url);
// this.$Message.warning('文件格式不支持')
}
},
removeCancel() {
this.deletelModal = false
this.deletelModal = false;
},
l(key) {
/*
......@@ -186,11 +204,11 @@ export default {
lastModifierUserId:'',
}
*/
let vkey = 'waitReview' + '.' + key
return this.$t(vkey) || key
}
}
}
let vkey = "waitReview" + "." + key;
return this.$t(vkey) || key;
},
},
};
</script>
<style lang="less">
</style>
\ No newline at end of file
<template>
<div>
<DataGrid :columns="columns" ref="grid" :high='false' :action="action" :conditions="easySearch">
<DataGrid
:columns="columns"
ref="grid"
:high="false"
:action="action"
:conditions="easySearch"
>
<!-- <template slot="searchForm">
<!-- <Search />
</template>-->
......@@ -9,18 +15,25 @@
</template>-->
</DataGrid>
<Modal v-model="detailModal" title="复验" width="490" footer-hide>
<Form :model="setNumForm" :label-width="90" :rules="rules" >
<Form :model="setNumForm" :label-width="90" :rules="rules">
<Row>
<Col span="24">
<FormItem label="合格证编码">
<Input v-model="setNumForm.substrateCoding" placeholder="系统自动生成可修改"></Input>
<Input
v-model="setNumForm.substrateCoding"
placeholder="系统自动生成可修改"
></Input>
</FormItem>
</Col>
</Row>
<Row>
<Col span="24">
<FormItem label="复验文件" prop="storeTitle">
<inputFile v-model="setNumForm.imgName" :parms="qcfileparms" files />
<inputFile
v-model="setNumForm.imgName"
:parms="qcfileparms"
files
/>
</FormItem>
</Col>
</Row>
......@@ -42,10 +55,10 @@
</div>
</template>
<script>
import Api from '../api'
import service from '@/plugins/request'
import Api from "../api";
import service from "@/plugins/request";
export default {
name: 'list',
name: "list",
// components:{
// Add,Edit,Detail,Search
// },
......@@ -56,170 +69,188 @@ export default {
editModal: false,
detailModal: false,
deletelModal: false,
redmsg:false,
redmsg: false,
rules: {
storeTitle: [
{ required: true, message: '请选择库位', trigger: 'blur' }
{ required: true, message: "请选择库位", trigger: "blur" },
],
},
qcfileparms: 'app=qms&eid=' + this.curId + '&name=ProcessRecord', //模块+单条数据id+文件字段名
qcfileparms: "app=qms&eid=" + this.curId + "&name=ProcessRecord", //模块+单条数据id+文件字段名
setNumForm: {
substrateCoding: '',
substrateCoding: "",
id: 0,
imgName: ''
imgName: "",
},
easySearch: {
keys: { op: 'brand,name', value: '',default:true},
reinspectionStatus: { op: 'Equal', value: 1 }
keys: { op: "brand,name", value: "", default: true },
reinspectionStatus: { op: "Equal", value: 0 },
status: { op: "Equal", value: 3 },
},
columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' },
{ key: "id", title: this.l("id"), hide: true, align: "left" },
{
key: 'brand',
title: this.l('brand'),
align: 'left',
easy: true,
high: true
},{
key: 'name',
title: this.l('name'),
align: 'left',
easy: true,
high: true
},{
key: 'specifications',
title: this.l('specifications'),
align: 'left',
easy: true,
high: true
},{
key: 'batchNo',
title: this.l('batchNo'),
align: 'left',
easy: true,
high: true,
hide:true,
},{
key: 'originalManufacturer',
title: this.l('originalManufacturer'),
align: 'left',
easy: true,
high: true,
hide:true,
key: "codeRuleType",
title: "类别",
align: "center",
code: "material.code.type",
import: true,
hide: true,
},
// {
// key: 'reinspectionDate',
// title: this.l('reinspectionDate'),
// align: 'center',
// render: (h, paras) => {
// return h('span', paras.row.reinspectionDate)
// key: "codeRuleId",
// title: "编码名称",
// materialKey: "3",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType3(params.row.codeRuleId));
// },
// high: true,
// width:180,
// },
// {
// key: "rootCategoryId",
// title: "大类",
// align: "right",
// materialKey: "1",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType1(params.row.rootCategoryId));
// },
// },
// {
// key: "categoryId",
// title: "子类",
// align: "right",
// materialKey: "2",
// import: true,
// hide: true,
// render: (h, params) => {
// return h("span", {}, this.getType2(params.row.categoryId));
// },
// },
{
key: "code",
title: "编码",
align: "left",
render: (h, params) => {
return h(
"div",
{
props: {},
on: {
click: () => this.details(params.row),
},
},
!params.row.code || params.row.code == 0
? "未分配"
: params.row.code
);
},
},
{
key: "name",
title: "名称",
align: "left",
},
{
key: 'remainingAmount',
title: this.l('remainingAmount'),
align: 'left',
high: true
},{
key: 'storeId',
title: this.l('storeId'),
align: 'left',
render: (h, paras) => {
return h('span', paras.row.storeId)
},
high: true
},{
key: 'location',
title: this.l('location'),
align: 'left',
easy: true,
high: true
},{
key: 'category',
title: this.l('category'),
align: 'center',
high: true,
code: 'mes_xingchi_resource.material.powderType'
},{
key: 'reinspectionStatus',
title: this.l('reinspectionStatus'),
code: 'mes_xingchi_resource.material.recheckState',
align: 'center',
easy: true,
high: true,
width:100
key: "status",
title: "状态",
align: "center",
code: "material.main.status",
},
{
title: '操作',
key: 'id',
key: "version",
title: "版本",
align: "left",
code: "material.main.version",
},
{
key: "drawing",
title: "图号",
align: "left",
},
{
key: "creationTime",
title: "创建时间",
hide: true,
align: "left",
type: "date",
},
{
key: "creatorUserId",
title: "创建人",
hide: true,
align: "left",
type: "user",
},
{
title: "操作",
key: "id",
width: 100,
align: 'center',
align: "center",
render: (h, params) => {
return h('div', { class: 'action' }, [
return h("div", { class: "action" }, [
h(
'op',
"op",
{
attrs:{
oprate:'detail'
} ,
on: { click: () => this.detail(params.row.id) }
},
'复验'
)
])
}
}
]
}
attrs: {
oprate: "detail",
},
on: { click: () => this.detail(params.row.id) },
},
"复验"
),
]);
},
mounted() {
},
],
};
},
mounted() {},
methods: {
detail(id) {
this.detailModal = true
this.detailModal = true;
this.setNumForm = {
substrateCoding: '',
substrateCoding: "",
id: id,
imgName: ''
}
imgName: "",
};
// this.setNumForm.id = id;
},
suerUp() {
if(this.setNumForm.imgName == ''||this.setNumForm.imgName == null){
if (this.setNumForm.imgName == "" || this.setNumForm.imgName == null) {
this.detailModal = true;
this.redmsg = true;
}else{
} else {
this.redmsg = false;
let url = `${resourceUrl}/materialpowder/exam`,
let url = `${material}/material/exam`,
parmse = {
"id": this.setNumForm.id,
"certificateNumber": this.setNumForm.substrateCoding,
"certificateUploadPath": this.setNumForm.imgName,
id: this.setNumForm.id,
certificateNumber: this.setNumForm.substrateCoding,
certificateUploadPath: this.setNumForm.imgName,
};
service.post(`${url}`,parmse).then((res) => {
if(res.success){
this.$Message.success('订单已复验。')
service.post(`${url}`, parmse).then((res) => {
if (res.success) {
this.$Message.success("订单已复验。");
this.detailModal = false;
this.$refs.grid.load()
}else{
this.$Message.warning('请重新复验!')
this.$refs.grid.load();
} else {
this.$Message.warning("请重新复验!");
}
})
});
}
},
handleClose() {
this.detailModal = false
this.detailModal = false;
},
// 列表title
l(key) {
let vkey = 'waitReview' + '.' + key
return this.$t(vkey) || key
}
}
}
let vkey = "waitReview" + "." + key;
return this.$t(vkey) || key;
},
},
};
</script>
<style lang="less">
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment