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

复验ok

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