Commit 57c55ca1 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 8b8c3288 5ab16884
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"vue-i18n": "^8.15.5", "vue-i18n": "^8.15.5",
"vue-json-viewer": "^2.2.8", "vue-json-viewer": "^2.2.8",
"vue-quill-editor": "^3.0.6", "vue-quill-editor": "^3.0.6",
"vue-slider-component": "^3.1.3", "vue-slider-component": "^3.1.5",
"vue-switches": "^2.0.1", "vue-switches": "^2.0.1",
"vue-ueditor-wrap": "^2.4.1", "vue-ueditor-wrap": "^2.4.1",
"vue2-editor": "^2.10.2", "vue2-editor": "^2.10.2",
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
this.datafrom.fill_in_user_type = fill_in_user_type; this.datafrom.fill_in_user_type = fill_in_user_type;
this.datafrom.data_type = 4; this.datafrom.data_type = 4;
this.ids = []; this.ids = [];
console.log(params);
if ( if (
fill_in_user_type == 1 && //自检 fill_in_user_type == 1 && //自检
params.selfchecklist != null && params.selfchecklist != null &&
...@@ -151,9 +151,9 @@ export default { ...@@ -151,9 +151,9 @@ export default {
: params.seizurechecklist.record_id; : params.seizurechecklist.record_id;
} }
this.datafrom.product_code = product_code.join(","); this.datafrom.product_code = product_code;
// this.datafrom.board_code = board_code // this.datafrom.board_code = board_code
alert(2)
this.loaddata(); this.loaddata();
}, },
loaddata() { loaddata() {
...@@ -204,14 +204,20 @@ alert(2) ...@@ -204,14 +204,20 @@ alert(2)
this.moviedata.push(row); this.moviedata.push(row);
this.editIndex = this.moviedata.length - 1; this.editIndex = this.moviedata.length - 1;
} else { } else {
let lastindex = this.moviedata.length - 1; let lastindex = this.moviedata.length - 1;
if(lastindex<0)
{
lastindex=0;
}
this.data_content1 = this.moviedata[lastindex].data_content1; this.data_content1 = this.moviedata[lastindex].data_content1;
this.data_content2 = this.moviedata[lastindex].data_content2; this.data_content2 = this.moviedata[lastindex].data_content2;
this.data_content3 = this.moviedata[lastindex].data_content3; this.data_content3 = this.moviedata[lastindex].data_content3;
this.editIndex = lastindex; this.editIndex = lastindex;
} }
this.datafrom.product_code = this.datafrom.product_code.join(",");
}, },
handleEdit(row, index) { handleEdit(row, index) {
this.data_content1 = row.data_content1; this.data_content1 = row.data_content1;
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span class="ml20">产品号</span> <span class="ml20">产品号</span>
<Select <Select
:disabled="disabled"
multiple multiple
@on-change="productonchange" @on-change="productonchange"
v-model="product_ID" v-model="product_ID"
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
}, },
handleClose() {}, handleClose() {},
loadentry(entryModel) { loadentry(entryModel) {
this.user.dispatch_id = entryModel.id this.user.dispatch_id = entryModel.id
this.user.execute_id = entryModel.executeId this.user.execute_id = entryModel.executeId
this.user.order_id = entryModel.order_id this.user.order_id = entryModel.order_id
...@@ -128,14 +129,11 @@ export default { ...@@ -128,14 +129,11 @@ export default {
this.user.routingDetailId = entryModel.routingDetailId this.user.routingDetailId = entryModel.routingDetailId
this.isMain = entryModel.isMain this.isMain = entryModel.isMain
if (this.isMain == 1) {
this.disabled = false this.checker = [];
} else { this.product_ID = [];
this.disabled = true this.loadproduct();
} this.loaduser();
this.checker = []
;(this.product_ID = []), (this.board_ID = []), this.loadproduct()
this.loaduser()
}, },
loadproduct() { loadproduct() {
var url = var url =
...@@ -144,7 +142,7 @@ export default { ...@@ -144,7 +142,7 @@ export default {
service.post(`${url}`).then((response) => { service.post(`${url}`).then((response) => {
this.product_List = response.result this.product_List = response.result
this.board_List = response.result
}) })
}, },
loaduser() { loaduser() {
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<Select multiple @on-change="productonchange" v-model="product_ID" class="w200"> <Select multiple @on-change="productonchange" v-model="product_ID" class="w200">
<Option <Option
v-for="item in product_List" v-for="item in product_List"
:value="item.value" :value="item.productids"
:key="item.index" :key="item.index"
>{{ item.label }}</Option> >{{ item.productcodes }}</Option>
</Select> </Select>
</Col> </Col>
</Row> </Row>
...@@ -152,29 +152,26 @@ export default { ...@@ -152,29 +152,26 @@ export default {
this.product_ID = []; this.product_ID = [];
// this.board_ID = []; // this.board_ID = [];
this.productisabled = fillModel.productisabled; this.productisabled = fillModel.productisabled;
this.product_List = fillModel.product_List;
console.log(this.product_List);
// if (this.isMain == 1) {
// this.productdisabled = false;
// } else {
// this.productdisabled = true;
// }
this.product_ID.push(fillModel.product_ID); this.product_ID.push(fillModel.product_ID);
alert(this.product_ID);
// this.board_ID.push(fillModel.board_ID);
if ( if (
fillModel.fill_in_user_type == 1 || fillModel.fill_in_user_type == 1 ||
fillModel.fill_in_user_type == 3 fillModel.fill_in_user_type == 3
) { ) {
this.board_List = fillModel.board_List; //自检或专检取全部产品
this.product_List = fillModel.product_List;
} else { } else {
this.board_List = []; //互检只取待互检和打回的
this.product_List = []; this.product_List = [];
for (let i = 0; i < fillModel.product_List.length; i++) { for (let i = 0; i < fillModel.product_List.length; i++) {
let obj = fillModel.product_List[i]; let obj = fillModel.product_List[i];
if (obj.productstatus == 2 || obj.productstatus == 4) { if (obj.productstatus == 2 || obj.productstatus == 4) {
this.board_List.push(obj);
this.product_List.push(obj); this.product_List.push(obj);
} }
} }
...@@ -185,8 +182,8 @@ export default { ...@@ -185,8 +182,8 @@ export default {
if (e) { if (e) {
this.product_ID = []; this.product_ID = [];
for (let i = 0; i < this.product_List.length; i++) { for (let i = 0; i < this.product_List.length; i++) {
let obj = this.product_List[i]; let obj = this.product_List[i]
this.product_ID.push(obj.value); this.product_ID.push(obj.productids)
} }
} else { } else {
this.product_ID = []; this.product_ID = [];
...@@ -197,7 +194,7 @@ export default { ...@@ -197,7 +194,7 @@ export default {
getCurrentUser(e) { getCurrentUser(e) {
if (e) { if (e) {
console.log(this.$store.state.admin.user.info); //console.log(this.$store.state.admin.user.info);
let userInfo = this.$store.state.admin.user.info; let userInfo = this.$store.state.admin.user.info;
this.user.cardno = userInfo.cardNo; this.user.cardno = userInfo.cardNo;
......
...@@ -81,6 +81,10 @@ export default { ...@@ -81,6 +81,10 @@ export default {
row.id = this.$route.query.id; row.id = this.$route.query.id;
row.orderId = this.$route.query.orderId; row.orderId = this.$route.query.orderId;
row.executeId = this.$route.query.executeId; row.executeId = this.$route.query.executeId;
row.headid=this.$route.query.headid;
row.routingdetailId=this.$route.query.routid;
this.row = row; this.row = row;
this.inputId = this.$route.query.id; this.inputId = this.$route.query.id;
this.detail = () => import("./starOrder/index"); this.detail = () => import("./starOrder/index");
......
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