diff --git a/src/pages/quality/Belowstandard/index.vue b/src/pages/quality/Belowstandard/index.vue index f671e15..64c4c0a 100644 --- a/src/pages/quality/Belowstandard/index.vue +++ b/src/pages/quality/Belowstandard/index.vue @@ -60,7 +60,7 @@ - +
来料不合格处理:
@@ -138,49 +138,7 @@ import { session } from '@/store/modules/session'; export default class PurchaseWHSRM extends BasePage { model = model; moren = '请选择检验节点'; - list: any = [ - { - createBy: null, - createTime: '2023-12-05 17:05:38', - updateBy: null, - updateTime: null, - remark: null, - poolName: null, - deptId: null, - id: '6026eb7bb28e463a82f8ce42a28b8644', - taskId: 'bacd97a5eda443a7895a88c484b88a51', - status: '0', - nextNodeCode: null, - nextNodeName: null, - attr1: null, - attr2: null, - attr3: null, - attr4: null, - factoryCode: null, - delFlag: null, - checkTimeStart: null, - checkTimeEnd: null, - type: null, - checkType: 'checkTypeLL', - checkName: '来料检验', - checkNo: '202312050001', - incomeBatchNo: '202312051339zxl', - orderNo: '202312051338zxl', - materialCode: '000000020000000279', - materialName: 'Φ120mm微烟白坯', - quality: '800.00', - unit: 'ST', - supplierCode: '0000102874', - supplierName: '中山恒阳日用制品有限公司', - incomeTime: '2023-12-05 21:34:06', - checkLoc: 'khd', - checkStatus: '0', - checkManCode: 'device', - checkManName: '设备测试', - checkTime: '2023-12-05 17:05:38.0', - checkResult: 'N', - }, - ]; + list: any = []; show = false; showselect = false; isshow = false; @@ -199,47 +157,7 @@ export default class PurchaseWHSRM extends BasePage { radiovalue: null, }, ]; - formdata: any = { - createBy: null, - createTime: '2023-12-05 17:05:38', - updateBy: null, - updateTime: null, - remark: null, - poolName: null, - deptId: null, - id: '6026eb7bb28e463a82f8ce42a28b8644', - taskId: 'bacd97a5eda443a7895a88c484b88a51', - status: '0', - nextNodeCode: null, - nextNodeName: null, - attr1: null, - attr2: null, - attr3: null, - attr4: null, - factoryCode: null, - delFlag: null, - checkTimeStart: null, - checkTimeEnd: null, - type: null, - checkType: 'checkTypeLL', - checkName: '来料检验', - checkNo: '202312050001', - incomeBatchNo: '202312051339zxl', - orderNo: '202312051338zxl', - materialCode: '000000020000000279', - materialName: 'Φ120mm微烟白坯', - quality: '800.00', - unit: 'ST', - supplierCode: '0000102874', - supplierName: '中山恒阳日用制品有限公司', - incomeTime: '2023-12-05 21:34:06', - checkLoc: 'khd', - checkStatus: '0', - checkManCode: 'device', - checkManName: '设备测试', - checkTime: '2023-12-05 17:05:38.0', - checkResult: 'N', - }; + formdata: any = {}; selectList: any = {}; // remove: any = {}; // async onReady() { @@ -591,18 +509,27 @@ export default class PurchaseWHSRM extends BasePage { // }); } async onLoad(options) { - this.getselectlist(); + this.getselectlist(options); + } + async getselectlist(options) { + await this.model.getCheckType(); + this.nodelist = this.model.orderNoItemList; if (options.listitem) { let str = decodeURIComponent(options.listitem); if (str) { this.detailsinfo = JSON.parse(str); - this.selectList.value = this.detailsinfo.checkType; + if (this.detailsinfo.checkType) { + this.selectList.value = this.detailsinfo.checkType; + } else { + this.selectList.value = this.nodelist[0].orderCode; + } + console.log(this.detailsinfo); let query = { factoryCode: session.PoolName, checkManCode: session.userName, checkStatus: 0, - checkType: this.detailsinfo.checkType, + checkType: this.selectList.value, }; await this.model.getCheckTaskListall(query); console.log(model.CheckTaskListall); @@ -610,10 +537,6 @@ export default class PurchaseWHSRM extends BasePage { } } } - async getselectlist() { - await this.model.getCheckType(); - this.nodelist = this.model.orderNoItemList; - } async onPass(item) { console.log('1234567', item); this.clickitem = item; diff --git a/src/pages/quality/Materialinspection/index.vue b/src/pages/quality/Materialinspection/index.vue index 28e4a5e..770f38b 100644 --- a/src/pages/quality/Materialinspection/index.vue +++ b/src/pages/quality/Materialinspection/index.vue @@ -51,7 +51,7 @@ - +
检验项目 :
@@ -168,7 +168,7 @@
- +
确认 diff --git a/src/pages/quality/Records/index.vue b/src/pages/quality/Records/index.vue index a965587..f016aca 100644 --- a/src/pages/quality/Records/index.vue +++ b/src/pages/quality/Records/index.vue @@ -51,13 +51,13 @@ - +
项目名称: {{ item.ruleName }}
-
检查结果: {{ item.itemMethod }}
-
-
检查标准: {{ item.checkStandard }}
+
检查标准: {{ item.checkStandard }}
+
+
检查结果:
@@ -67,13 +67,22 @@
-
检查标准: {{ item.checkStandard }}
实际值: 单位:mm
+
+
检查结果:
+
+ + + {{ n.name }} + + +
+
+ + + + + + + + + + + + + + + + +
确认
@@ -223,8 +249,18 @@ export default class PurchaseWHSRM extends BasePage { nodelist: any = ''; detaillistceshi: any = []; clickitem: any = ''; + formdata: any = { + sampleQuality: null, + noOkQuality: null, + aNoOkquality: null, + bNoOkquality: null, + cNoOkquality: null, + }; isvalue = false; isfocus = false; + isshow1 = false; + isshow2 = false; + isshow3 = false; //收货按钮 tagClick(index) { this.tagslist.splice(index, 1); @@ -270,6 +306,19 @@ export default class PurchaseWHSRM extends BasePage { async onPass(item) { console.log('1234567', item); this.clickitem = item; + let labelname = null; + this.nodelist.forEach((item) => { + if (item.orderCode == this.selectList.value) { + labelname = item.checkName; + } + }); + if (labelname == '来料检验') { + this.isshow1 = true; + } else if (labelname == '成品入库检验') { + this.isshow1 = true; + } else if (labelname == '过程检验') { + this.isshow3 = true; + } let belongTo = item.recordId; await this.model.getCheckTaskList(belongTo); this.detaillistceshi = this.model.CheckTaskList; @@ -698,9 +747,9 @@ export default class PurchaseWHSRM extends BasePage { font-weight: 600; } .item2 { - display: flex; - align-content: center; - justify-content: space-between; + // display: flex; + // align-content: center; + // justify-content: space-between; .select { font-size: 15px; font-weight: 400; @@ -715,7 +764,6 @@ export default class PurchaseWHSRM extends BasePage { margin-top: 2px; .input { font-size: 12px; - width: 65px; padding: 1px 8px; height: 20px; box-sizing: border-box; @@ -728,6 +776,11 @@ export default class PurchaseWHSRM extends BasePage { } } } + .item3 { + display: flex; + align-content: center; + justify-content: space-between; + } } } .modal { @@ -747,5 +800,101 @@ export default class PurchaseWHSRM extends BasePage { } } } + .Belowsform3 { + background-color: #fff; + padding: 7px 8px 7px 12px; + .u-form-item { + line-height: 35rpx; + font-size: 16px; + } + .photoList { + display: flex; + padding-top: 12rpx; + + .chooseBtn { + width: 202rpx; + height: 202rpx; + background: #fafafa; + border-radius: 12rpx; + border: 2rpx dashed #e2e2e2; + display: flex; + justify-content: center; + align-items: center; + + .inner { + text-align: center; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + + .desc { + font-size: 28rpx; + font-weight: 400; + color: #24252a; + line-height: 40rpx; + } + + .img { + width: 50rpx; + height: 50rpx; + margin-bottom: 6rpx; + } + } + + .photoBox { + width: 202rpx; + height: 202rpx; + background: #fafafa; + border-radius: 12rpx; + position: relative; + + .closeBtn { + position: absolute; + top: -12rpx; + right: -12rpx; + z-index: 2; + width: 36rpx; + height: 36rpx; + + .img { + width: 36rpx; + height: 36rpx; + } + } + + .img { + width: 202rpx; + height: 202rpx; + border-radius: 12rpx; + } + } + + .itemBox { + flex: 0 0 202rpx; + margin-right: 20rpx; + + &:last-child { + margin-right: 0; + } + } + } + } + ::v-deep .input1 .u-input__input { + //background: rgb(233 231 231 / 38%); + background-color: #f0f0f0; + } + ::v-deep .uni-input-placeholder { + font-weight: 500; + left: 10px; + } + ::v-deep .uni-textarea-placeholder { + font-weight: 500; + } + ::v-deep .Belowsform3 .uni-input-input { + width: 97%; + border: 1px solid #dcdfe6; + } } diff --git a/src/pages/quality/model.ts b/src/pages/quality/model.ts index 9ece1ae..fb5188e 100644 --- a/src/pages/quality/model.ts +++ b/src/pages/quality/model.ts @@ -21,6 +21,7 @@ export class quality extends VuexModule { //loginName: session.loginName, params: { factoryCode: session.PoolName, + checkManCode: session.userName, }, }); const orderNoItemList = result.data; diff --git a/src/pages/shouye/me.vue b/src/pages/shouye/me.vue index f91cc46..d2ce627 100644 --- a/src/pages/shouye/me.vue +++ b/src/pages/shouye/me.vue @@ -65,7 +65,7 @@ export default class RawHome extends BasePage { model = model; src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'; today = dayjs().format('YYYY-MM-DD dddd'); - version = '0.0.18'; + version = '0.0.19'; checkversion: any = {}; sessiondata: any = ''; onLoad() {