Commit e9e09ba7 authored by renjintao's avatar renjintao

api

parent dd423425
...@@ -36,5 +36,15 @@ export default { ...@@ -36,5 +36,15 @@ export default {
}, },
moveintoai(){////跳转进入智能排产池前判断 moveintoai(){////跳转进入智能排产池前判断
return Api.post(`${PlanUrl}/messchedule/moveintoai`); return Api.post(`${PlanUrl}/messchedule/moveintoai`);
} },
//配套相关
matchlist(params){//申请配套列表
return Api.get(`${technologyUrl}materiallist/matchlist`, params);
},
supportmainPaged(params){////配套记录
return Api.post(`${technologyUrl}supportmain/paged`, params);
},
supportmainCreate(params){////保存配套
return Api.post(`${technologyUrl}supportmain/create`, params);
},
} }
\ No newline at end of file
...@@ -126,16 +126,17 @@ ...@@ -126,16 +126,17 @@
<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 <component
:is="details" :is="detail"
:eid="curId" :eid="orderId"
:uid="uId" :mesCode="mesCode"
:title="title" :productName="productName"
:headid="hid" :drawnNumber="drawnNumber"
@on-close="cancel" :count="count"
@on-ok="ok" @on-close="cancel"
/> @on-ok="ok"
</Modal> />
</Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -177,10 +178,15 @@ export default { ...@@ -177,10 +178,15 @@ export default {
this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [], this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [],
name: "", name: "",
item: null, item: null,
title:'', title: "",
details: null, detail: null,
uId: "", uId: "",
hid: 0, hid: 0,
orderId: 0,
mesCode:"",
productName: "",
drawnNumber: "",
count: 0,
modalAccessory: false, modalAccessory: false,
columns: [ columns: [
{ {
...@@ -794,14 +800,17 @@ export default { ...@@ -794,14 +800,17 @@ export default {
this.item.name = " "; this.item.name = " ";
this.item.color = ""; this.item.color = "";
} }
} }
return this.item; return this.item;
}, },
openAccessory(row) openAccessory(row) {
{ this.orderId = row.id;
this.curId = 0; this.mesCode=row.mesCode;
this.productName = row.productName;
this.drawnNumber = row.drawnNumber;
this.count = row.quantity;
this.title = "申请配套"; this.title = "申请配套";
this.details = () => import("./addAccessory"); this.detail = () => import("./addAccessory");
this.modalAccessory = true; this.modalAccessory = true;
}, },
cancel() { cancel() {
......
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