新增质量管理页面UI

master
LAPTOP-R6EHHS26\86155 3 years ago
parent 8ffdf1b175
commit 7d3a61b74f

@ -80,11 +80,11 @@ page {
// .uni-input-input:disabled{
// background:red;
// }
.uni-input-input[disabled] {
//background: rgb(233 231 231 / 38%);
background: #ecefefb3;
color: rgb(158, 157, 157);
}
// .uni-input-input[disabled] {
// //background: rgb(233 231 231 / 38%);
// background-color: #ffffff;;
// color: rgb(158, 157, 157);
// }
.u-mode-center-box {
padding: 5px;

@ -52,6 +52,14 @@
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/equipmentlist",
"style": {
"navigationBarTitleText": "设备列表",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Inspection/index",
"style": {
@ -188,6 +196,62 @@
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/index",
"style": {
"navigationBarTitleText": "质量管理",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Belowstandard/index",
"style": {
"navigationBarTitleText": "不合格处置",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Inspectionitem/index",
"style": {
"navigationBarTitleText": "检验项目",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Inspectionrule/index",
"style": {
"navigationBarTitleText": "检验规则",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Inspectionunit/index",
"style": {
"navigationBarTitleText": "检验单位",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Materialinspection/index",
"style": {
"navigationBarTitleText": "质量检验",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/quality/Records/index",
"style": {
"navigationBarTitleText": "历史记录",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/index/index",
"style": {

@ -18,8 +18,8 @@
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
</div>
<div class="details">
<div>车间: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfolist.workCenterName }}</div>
<div>车间编码: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">车间: {{ detailsinfolist.workCenterName }}</div>
</div>
</div>
<view class="single-left">
@ -32,7 +32,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
@ -42,7 +42,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -461,7 +461,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -469,7 +469,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -500,7 +500,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -17,8 +17,8 @@
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
</div>
<div class="details">
<div>车间: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfolist.workCenterName }}</div>
<div>车间编码: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">车间: {{ detailsinfolist.workCenterName }}</div>
</div>
</div>
<view class="single-left">
@ -31,7 +31,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
@ -41,7 +41,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -392,7 +392,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -400,7 +400,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -431,7 +431,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -191,7 +191,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -204,7 +204,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.list-top {

@ -8,7 +8,7 @@ import { url } from '@/utils/url';
store,
name: 'page.equipment.Inspection',
})
export class ChangePalletNew extends VuexModule {
export class Inspection extends VuexModule {
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
@ -56,4 +56,4 @@ export class ChangePalletNew extends VuexModule {
}
}
export default getModule(ChangePalletNew);
export default getModule(Inspection);

@ -32,7 +32,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div >检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
@ -42,7 +42,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div >检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -444,7 +444,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -452,7 +452,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -483,7 +483,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -235,7 +235,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -248,7 +248,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.list-top {

@ -8,7 +8,7 @@ import { url } from '@/utils/url';
store,
name: 'page.equipment.Repair',
})
export class ChangePalletNew extends VuexModule {
export class Repair extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@ -62,4 +62,4 @@ export class ChangePalletNew extends VuexModule {
}
}
export default getModule(ChangePalletNew);
export default getModule(Repair);

@ -5,7 +5,7 @@
<view class="left">
<u-icon class="icon" name="arrow-left" @click="goback()" />
</view>
<view class="title">巡检详情</view>
<view class="title">维修详情</view>
<view class="right"></view>
</view>
<!-- <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
@ -13,7 +13,7 @@
<div class="item-name">
<div class="quest">报修信息</div>
<div class="details">
<div>工单号: {{ detailsinfolist.workCode }}</div>
<div>报修单号: {{ detailsinfolist.orderCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
@ -21,7 +21,7 @@
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>修时间: {{ detailsinfolist.orderTime }}</div>
<div>修时间: {{ detailsinfolist.orderTime }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
@ -59,7 +59,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type">
@ -69,7 +69,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -83,7 +83,10 @@
<!-- <u-button type="success">点击进行备件申领</u-button> -->
<div class="Pickup">点击进行备件申领</div>
<div class="Pickupclick">
<img @click="linkSparepartlist(detailsinfolist)" src="../../../static/images/add.png" alt="" />
<!-- width: 63px;
height: 57px; -->
<u-image @click="linkSparepartlist(detailsinfolist)" width="63px" height="57px" class="image" :src="image.equipment.Repairimage1"></u-image>
<!-- <image :src="image.equipment.Repairimage1" @click="linkSparepartlist(detailsinfolist)"></image> -->
</div>
</div>
<view class="list" v-for="(item, index) in Sparepartlist" :key="index">
@ -716,7 +719,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -725,7 +728,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -847,7 +850,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {
@ -901,8 +904,13 @@ export default class ChangePalletNew extends BasePage {
.Pickupclick {
color: #1a99db;
border-radius: 10px;
img {
width: 50px;
image {
width: 63px;
height: 57px;
}
.image {
width: 63px;
height: 57px;
}
}
}

@ -5,14 +5,14 @@
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">巡检详情</view>
<view class="title">维修详情</view>
<view class="right"></view>
</view>
<!-- <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
<view class="list">
<div class="item-name">
<div class="quest">工单号: {{ detailsinfolist.orderCode }}</div>
<div class="quest">维修工单号: {{ detailsinfolist.workCode }}</div>
<div class="details">
<div>设备编码: {{ detailsinfolist.equipmentCode }}</div>
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
@ -25,7 +25,7 @@
<div class="item-name item-info">
<div class="quest">报修信息</div>
<div class="details">
<div>工单号: {{ detailsinfolist.workCode }}</div>
<div>报修单号: {{ detailsinfolist.orderCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
@ -33,7 +33,7 @@
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>修时间: {{ detailsinfolist.orderTime }}</div>
<div>修时间: {{ detailsinfolist.orderTime }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
@ -71,7 +71,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
@ -81,7 +81,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -627,7 +627,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -635,7 +635,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -753,7 +753,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -12,12 +12,15 @@
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>条码:</view>
<view style="width: 42px">条码:</view>
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false" @search="query"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view>
<view class="single-right">
<u-button type="primary" @click="selscteq()"></u-button>
</view>
</view>
</u-form>
<view class="list listbottom" v-show="isaccord">
@ -153,8 +156,12 @@ export default class ChangePalletNew extends BasePage {
//this.remove = this.model.WlList[0];
}
onShow() {
// this.onLoad;
// console.log(2, this.model.rowdata);
if (this.model.rowdata.length == 0) {
this.model.rowdatanull();
} else {
this.orderNo = '';
this.orderNo = this.model.rowdata[0].equipmentCode;
}
}
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
@ -186,6 +193,11 @@ export default class ChangePalletNew extends BasePage {
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
selscteq() {
uni.navigateTo({
url: `/pages/equipment/equipmentlist?listitem=`,
});
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (Math.random() * 16) | 0,
@ -389,6 +401,7 @@ export default class ChangePalletNew extends BasePage {
.form {
background-color: #fff;
padding: 40rpx;
padding-right: 10px;
border-radius: 15px 15px 15px 15px;
.u-form-item {
@ -416,9 +429,13 @@ export default class ChangePalletNew extends BasePage {
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
width: 25px;
height: 70rpx;
background-color: #fa3534;
font-size: 12px;
}
button:first-child {
margin-left: 3px;
}
}
}
@ -500,7 +517,7 @@ export default class ChangePalletNew extends BasePage {
padding: 0px;
}
.list {
background-color: #f2f2f2;
background-color: #ffffff;
padding: 21px;
box-sizing: border-box;
margin-top: 10px;
@ -511,7 +528,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;

@ -8,7 +8,8 @@ import { url } from '@/utils/url';
store,
name: 'page.equipment.Repairbx',
})
export class ChangePalletNew extends VuexModule {
export class Repairbx extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
@ -29,6 +30,18 @@ export class ChangePalletNew extends VuexModule {
const SubmitCode = result;
return { SubmitCode };
}
equipmentlist: any = [];
@MutationAction
async queryhandChecklist(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repairbx.getEquipmentList, { params: params });
const equipmentlist = result.rows;
return { equipmentlist };
}
@MutationAction
async rowdatanull() {
const rowdata: [] = [];
return { rowdata };
}
}
export default getModule(ChangePalletNew);
export default getModule(Repairbx);

@ -18,8 +18,8 @@
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
</div>
<div class="details">
<div>车间: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfolist.workCenterName }}</div>
<div>车间编码:: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">车间: {{ detailsinfolist.workCenterName }}</div>
</div>
</div>
<view class="single-left">
@ -32,7 +32,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
@ -42,7 +42,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -459,7 +459,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -467,7 +467,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -498,7 +498,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -17,8 +17,8 @@
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
</div>
<div class="details">
<div>车间: {{ detailsinfocontent.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div>
<div>车间编码:: {{ detailsinfolist.planWorkshop }}</div>
<div style="margin-left: 42px">车间: {{ detailsinfolist.workCenterName }}</div>
</div>
</div>
<view class="single-left">
@ -31,7 +31,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
@ -41,7 +41,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -402,7 +402,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -410,7 +410,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -441,7 +441,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -18,7 +18,6 @@
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</div>
</view>
<view class="list" v-show="current != 0" v-for="(item, index) in detailsdata" :key="index">
@ -30,7 +29,6 @@
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</div>
</view>
<u-toast ref="uToast" />
</view>
@ -192,7 +190,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -205,7 +203,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.list-top {

@ -8,7 +8,7 @@ import { url } from '@/utils/url';
store,
name: 'page.equipment.Spotcheck',
})
export class ChangePalletNew extends VuexModule {
export class Spotcheck extends VuexModule {
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
@ -56,4 +56,4 @@ export class ChangePalletNew extends VuexModule {
}
}
export default getModule(ChangePalletNew);
export default getModule(Spotcheck);

@ -32,7 +32,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div >检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
@ -42,7 +42,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div >检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -445,7 +445,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -453,7 +453,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -484,7 +484,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -257,7 +257,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -270,7 +270,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.list-top {

@ -8,7 +8,7 @@ import { url } from '@/utils/url';
store,
name: 'page.equipment.Upkeep',
})
export class ChangePalletNew extends VuexModule {
export class Upkeep extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@ -86,4 +86,4 @@ export class ChangePalletNew extends VuexModule {
}
}
export default getModule(ChangePalletNew);
export default getModule(Upkeep);

@ -47,7 +47,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type">
@ -57,7 +57,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div>检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -132,7 +132,7 @@
</u-form-item> -->
<!-- 单号 -->
<u-form-item label="保养费用:">
<u-input v-model="formdata.workCost" placeholder="" />
<u-input v-model="formdata.orderCost" placeholder="" />
</u-form-item>
<!-- <u-form-item label="保养时间:">
<u-input @blur="blur()" @focus="focus()" placeholder="" v-model="orderBreakdownTime" />
@ -702,7 +702,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -711,7 +711,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -833,7 +833,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -47,7 +47,7 @@
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
@ -57,7 +57,7 @@
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div @click="checkimg(item1, item1.detailReach, index, index1)" style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div @click="checkimg(item1, item1.detailReach, index, index1)">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
@ -85,7 +85,7 @@
<!-- 机台 -->
<!-- 单号 -->
<u-form-item label="保养费用:">
<u-input :disabled="detailsinfolist.workCost == null ? true : true" v-model="detailsinfolist.workCost" placeholder="" />
<u-input :disabled="detailsinfolist.orderCost == null ? true : true" v-model="detailsinfolist.orderCost" placeholder="" />
</u-form-item>
<u-form-item label="图片:">
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft1()">
@ -597,7 +597,7 @@ export default class ChangePalletNew extends BasePage {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
@ -605,7 +605,7 @@ export default class ChangePalletNew extends BasePage {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #f2f2f2;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
@ -723,7 +723,7 @@ export default class ChangePalletNew extends BasePage {
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {

@ -0,0 +1,409 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">设备选择</view>
<view class="right"></view>
</view>
<!-- <view class="single-left">
<view>设备名称:</view>
<u-search placeholder="请输入" @search="search()" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
</view> -->
<view style="margin: 20px">
<wyb-table ref="table" :headers="headers" :contents="tableData" enable-check="single" width="auto" first-col-bg-color="#ffffff" checker-color="#000000" @onCheck="changeContent" show-left-and-right-border />
</view>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" title="" :content="content" @cancel="cancel" @confirm="confirm()">
<!-- <div class="form">
<div class="formlable">申领数量</div>
<u-input style="" v-model="number1" placeholder="" type="number" />
</div> -->
</u-modal>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from '../equipment/Repairbx/model';
//import { session } from '@/store/modules/session';
// import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
},
})
export default class ProductionQtyInsplist extends BasePage {
model = model;
rowdata: any = {};
content: any = '是否选择设备';
headers = [
{
label: '序号',
key: 'index',
width: 100,
},
{
label: '设备名称',
key: 'equipmentName',
width: 320,
},
{
label: '设备编码',
key: 'equipmentCode',
width: 320,
},
{
label: '位置',
key: 'equipmentLocation',
},
{
label: '工作中心',
key: 'workshopName',
},
// {
// label: '',
// key: 'productName',
// width: 220,
// },
// {
// label: '',
// key: 'workorderCode',
// width: 220,
// },
// {
// label: '',
// key: 'badMeg',
// },
];
tableData: any = [];
orderNo: any = '';
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
isvalue = false;
ischecked = false;
radiomodal = false;
number1: any = '';
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
onShow() {
// this.query();
console.log(2, this.model.rowdata);
}
async confirm() {
var bool = null;
if (this.model.rowdata.length > 0) {
bool = this.model.rowdata.some((item) => item.equipmentCode == this.rowdata.equipmentCode);
console.log(bool);
if (!bool) {
this.rowdata.spareQuantity = this.number1;
await this.model.rowdatanull();
// console.log(this.model.rowdata)
this.model.rowdata.push(this.rowdata);
// uni.navigateTo({
// url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
// });
uni.navigateBack({});
}
if (bool) {
(this.$refs.uToast as any).show({
title: '请勿重复选择',
type: 'default',
});
// _this.customToast('');
}
} else {
this.rowdata.spareQuantity = this.number1;
this.model.rowdata.push(this.rowdata);
// uni.navigateTo({
// url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
// });
uni.navigateBack({});
}
console.log(this.model.rowdata, this.page, this.rowdata);
}
cancel() {
this.isshow = false;
}
goback() {
uni.redirectTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
});
}
async onLoad() {
let query = {
pageNum: 1,
pageSize: 10000,
};
await this.model.queryhandChecklist(query);
this.tableData = this.model.equipmentlist;
this.tableData.map((item, index) => {
item.index = index + 1;
});
}
changeContent(e) {
//console.log('eee', e.data);
this.rowdata = e.data[0]?.lineData;
// uni.$emit('changeContent',e);
}
gozhijian() {
this.uni.navigateTo({
url: this.page.mes.ProductionQtyInsp,
});
}
onSubmit() {
//debugger
//console.log('xssss',this.rowdata);
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择至少一个备件');
return;
}
this.isshow = true;
// this.uni.navigateTo({
// url: this.page.mes.ProductionQtyInspDetail,
// });
}
// async search() {
// let query = {
// pageNum: 1,
// pageSize: 10000,
// };
// await this.model.queryhandChecklist(query);
// this.tableData = this.model.equipmentlist;
// this.tableData.map((item, index) => {
// item.index = index + 1;
// });
// }
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.single-left {
width: 90%;
height: 100%;
display: flex;
justify-content: space-around;
align-items: center;
margin-left: 20px;
margin-right: 20px;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
font-size: 15px;
// font-weight: bold;
color: black;
}
}
.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;
padding: 9px 0px;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
// .wyb-table-scroll-view {
// width: auto !important;
// }
.form {
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-around;
}
::v-deep .form .uni-input-input {
margin-left: 10px;
width: 93%;
border: 1px solid;
padding: 10px 5px;
box-sizing: border-box;
outline: none;
height: 35px;
font-weight: 500;
}
</style>

@ -2,7 +2,7 @@
<view class="page-raw-ingoods">
<view class="header">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
<u-icon class="icon" name="arrow-left" @click="goback()" />
</view>
<view class="title">设备管理</view>
<view class="right"></view>
@ -46,6 +46,11 @@ export default class RawAppointment extends BasePage {
this.newmenuList = this.menuList.filter((item) => item.perms == 'equipmentlist');
console.log('1234', this.menuList);
}
goback() {
uni.navigateTo({
url: `/pages/shouye/index`,
});
}
}
</script>

@ -9,7 +9,7 @@ import { session } from '@/store/modules/session';
store,
name: 'page.mes.Pallethandling',
})
export class ChangePalletNew extends VuexModule {
export class Pallethandling extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
@ -91,4 +91,4 @@ export class ChangePalletNew extends VuexModule {
}
}
export default getModule(ChangePalletNew);
export default getModule(Pallethandling);

@ -0,0 +1,303 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">采购入库(SRM)详细</view>
<view class="right"></view>
</view>
<view class="scroll">
<view v-for="item in list" :key="item.id">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="row-list">
<view class="list-item"> 物资编码: </view>
<view> 4500331750 </view>
</view>
<view class="row-list">
<view class="list-item"> 物资名称: </view>
<view> 40000006954 </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 入库数量: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="list-item"> 库位码: </view>
<view> 1000/0(PC) </view>
</view>
</view>
</u-form>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class PurchaseWHSRM extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
form3: any = {};
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
border = true;
height = 100;
autoHeight = true;
imgList: any = [];
imgUrlList: any = [];
isqualified = [
{
label: '合格',
value: '1',
},
{
label: '不合格',
value: '0',
},
];
productCodeList: any = {};
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
this.productCodeList = this.model.productCodeList[0];
this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.scroll {
// margin-top: 120rpx;
// padding-left: 30rpx;
// padding-right: 16rpx;
// margin-bottom: 20rpx;
// overflow: scroll;
// padding-top: 20rpx;
.form2 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
.zhuangtai {
background: #a7a0a04a;
width: 224rpx;
margin-right: -27rpx;
border: 2rpx solid #a7a0a04a;
border-radius: 12rpx;
text-align: center;
margin-bottom: 10rpx;
}
.zhuangtai[data-state='1'] {
color: green;
}
.zhuangtai[data-state='0'] {
color: blue;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.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;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,56 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
//import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.raw.Belowstandard',
})
export class Belowstandard extends VuexModule {
WlList = [];
@MutationAction
async queryLocation() {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
});
const WlList = result.data.map((_: any) => ({
label: _.locationCode,
value: _.locationCode,
}));
return { WlList };
}
orderNoItemList: any = [];
productCodeList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
orderNo,
});
const orderNoItemList = result.data;
// const productCodeList = result.data.map((_: any) => ({
// label: _.productCode,
// value: _.productCode,
// }));
return { orderNoItemList };
}
SubmitCode: any = '';
@MutationAction
async OnSubmit(params: any) {
const result: any = await http.post('', params);
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
}
}
export default getModule(Belowstandard);

@ -0,0 +1,414 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">检验项目</view>
<view class="right"></view>
</view>
<view class="single-left">
<u-input @blur="onblur()" @focus="onfocus" @click="onclick" style="width: 100%; background-color: #ffffff; margin: auto" v-model="orderNo" placeholder="请选择检验项目" />
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
</view>
<view style="margin: 20px">
<wyb-table ref="table" :headers="headers" :contents="list" width="auto" first-col-bg-color="#ffffff" checker-color="#000000" @onCheck="changeContent" show-left-and-right-border />
</view>
<u-select v-model="show" mode="mutil-column-auto" :list="list" @confirm="confirm"></u-select>
<!-- <view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确定</u-button>
</u-col>
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
// import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
},
})
export default class ProductionQtyInsplist extends BasePage {
model = model;
rowdata: any = {};
formdata: any = {};
show: any = false;
headers = [
{
label: '序号',
key: 'index',
width: 100,
},
{
label: '检验规则名称',
key: 'ruleName',
width: 320,
},
{
label: '标准值',
key: 'standardValue',
// width: ,
},
{
label: '上差值',
key: 'upperDiff',
},
{
label: '下差值',
key: 'downDiff',
},
{
label: '单位',
key: 'unit',
},
];
tableData: any = [];
orderNo: any = '';
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
isvalue = false;
ischecked = false;
radiomodal = false;
list: any = [
{
value: 1,
label: '中国',
children: [
{
value: 2,
label: '广东',
children: [
{
value: 3,
label: '深圳',
},
{
value: 4,
label: '广州',
},
],
},
{
value: 5,
label: '广西',
children: [
{
value: 6,
label: '南宁',
},
{
value: 7,
label: '桂林',
},
],
},
],
},
{
value: 8,
label: '美国',
children: [
{
value: 9,
label: '纽约',
children: [
{
value: 10,
label: '皇后街区',
},
],
},
],
},
];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
onShow() {
// this.query();
console.log(2, this.model.rowdata);
}
onblur() {
console.log('333');
this.show = true;
}
onfocus() {
console.log('222');
this.show = false;
}
onclick() {
console.log('111');
this.show = true;
}
confirm(e) {
console.log(e, this.page, this.rowdata);
}
cancel() {
this.isshow = false;
}
goback() {
uni.redirectTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
});
}
async onLoad() {
console.log('111');
}
changeContent(e) {
//console.log('eee', e.data);
this.rowdata = e.data[0]?.lineData;
// uni.$emit('changeContent',e);
}
onSubmit() {
//debugger
//console.log('xssss',this.rowdata);
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择至少一个备件');
return;
}
this.isshow = true;
// this.uni.navigateTo({
// url: this.page.mes.ProductionQtyInspDetail,
// });
}
async search() {
let query = {
pageNum: 1,
pageSize: 10000,
materialDesc: this.orderNo,
};
await this.model.queryhandChecklist(query);
this.tableData = this.model.Checklist;
this.tableData.map((item, index) => {
item.index = index + 1;
});
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.single-left {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-left: 20px;
padding-right: 20px;
// view {
// width:50px;
// height: 100%;
// line-height: 100rpx;
// font-size: 15px;
// // font-weight: bold;
// margin: auto;
// }
}
.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;
padding: 9px 0px;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
// .wyb-table-scroll-view {
// width: auto !important;
// }
.form {
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-around;
}
::v-deep .uni-input-input {
padding: 10px 5px;
box-sizing: border-box;
outline: none;
border: none;
}
::v-deep.uni-input-placeholder {
left: 6px;
}
</style>

@ -0,0 +1,65 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.equipment.Inspectionitem',
})
export class Inspectionitem extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
async getTodayTask(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTodayTask, { params: params });
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async getTaskRecord(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTaskRecord, { params: params });
const getTaskRecordList = result.data;
return { getTaskRecordList };
}
//巡检列表巡检记录
OrderInfList: any = [];
@MutationAction
async getInspectionOrderInfo(workId: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.selectPdaRepairWorkOrderDetails + '/' + workId);
const OrderInfList: [] = result.data;
return { OrderInfList };
}
SubmitCode: any = '';
//巡检提交
@MutationAction
async updateInspectionRecord(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateDowntime, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
@MutationAction
async updateMaintenanceRecords(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateMaintenanceRecords, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
Checklist: any = [];
@MutationAction
async queryhandChecklist(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.list, { params: params });
const Checklist: any = result.rows;
console.log('this.tableData', Checklist);
// debugger
return { Checklist };
}
@MutationAction
async rowdatanull() {
const rowdata: [] = [];
return { rowdata };
}
}
export default getModule(Inspectionitem);

@ -0,0 +1,401 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">检验规则</view>
<view class="right"></view>
</view>
<!-- <view class="single-left">
<u-input @blur="onblur()" @focus="onfocus" @click="onclick" style="width: 100%; background-color: #ffffff; margin: auto;" v-model="orderNo" placeholder="请选择检验项目" />
</view> -->
<view style="margin: 20px">
<wyb-table ref="table" :headers="headers" :contents="list" width="auto" first-col-bg-color="#ffffff" checker-color="#000000" @onCheck="changeContent" show-left-and-right-border />
</view>
<u-select v-model="show" mode="mutil-column-auto" :list="list" @confirm="confirm"></u-select>
<!-- <view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确定</u-button>
</u-col>
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
// import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
},
})
export default class ProductionQtyInsplist extends BasePage {
model = model;
rowdata: any = {};
formdata: any = {};
show: any = false;
headers = [
{
label: '序号',
key: 'index',
width: 100,
},
{
label: '规则名称',
key: 'ruleName',
width: 320,
},
{
label: '规则属性',
key: 'standardValue',
// width: ,
},
{
label: '检验方式',
key: 'upperDiff',
},
{
label: '检验工具',
key: 'downDiff',
},
{
label: '单位',
key: 'unit',
},
];
tableData: any = [];
orderNo: any = '';
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
isvalue = false;
ischecked = false;
radiomodal = false;
list: any = [
{
value: 1,
label: '中国',
children: [
{
value: 2,
label: '广东',
children: [
{
value: 3,
label: '深圳',
},
{
value: 4,
label: '广州',
},
],
},
{
value: 5,
label: '广西',
children: [
{
value: 6,
label: '南宁',
},
{
value: 7,
label: '桂林',
},
],
},
],
},
{
value: 8,
label: '美国',
children: [
{
value: 9,
label: '纽约',
children: [
{
value: 10,
label: '皇后街区',
},
],
},
],
},
];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
onShow() {
// this.query();
}
onblur() {
console.log('333');
this.show = true;
}
onfocus() {
console.log('222');
this.show = false;
}
onclick() {
console.log('111');
this.show = true;
}
confirm(e) {
console.log(e, this.page, this.rowdata);
}
cancel() {
this.isshow = false;
}
goback() {
uni.redirectTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
});
}
async onLoad() {
console.log('111');
}
changeContent(e) {
//console.log('eee', e.data);
this.rowdata = e.data[0]?.lineData;
// uni.$emit('changeContent',e);
}
onSubmit() {
//debugger
//console.log('xssss',this.rowdata);
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择至少一个备件');
return;
}
this.isshow = true;
// this.uni.navigateTo({
// url: this.page.mes.ProductionQtyInspDetail,
// });
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.single-left {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-left: 20px;
padding-right: 20px;
// view {
// width:50px;
// height: 100%;
// line-height: 100rpx;
// font-size: 15px;
// // font-weight: bold;
// margin: auto;
// }
}
.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;
padding: 9px 0px;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
// .wyb-table-scroll-view {
// width: auto !important;
// }
.form {
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-around;
}
::v-deep .uni-input-input {
padding: 10px 5px;
box-sizing: border-box;
outline: none;
border: none;
}
::v-deep.uni-input-placeholder {
left: 6px;
}
</style>

@ -0,0 +1,65 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.equipment.Inspectionrule',
})
export class Inspectionrule extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
async getTodayTask(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTodayTask, { params: params });
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async getTaskRecord(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTaskRecord, { params: params });
const getTaskRecordList = result.data;
return { getTaskRecordList };
}
//巡检列表巡检记录
OrderInfList: any = [];
@MutationAction
async getInspectionOrderInfo(workId: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.selectPdaRepairWorkOrderDetails + '/' + workId);
const OrderInfList: [] = result.data;
return { OrderInfList };
}
SubmitCode: any = '';
//巡检提交
@MutationAction
async updateInspectionRecord(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateDowntime, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
@MutationAction
async updateMaintenanceRecords(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateMaintenanceRecords, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
Checklist: any = [];
@MutationAction
async queryhandChecklist(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.list, { params: params });
const Checklist: any = result.rows;
console.log('this.tableData', Checklist);
// debugger
return { Checklist };
}
@MutationAction
async rowdatanull() {
const rowdata: [] = [];
return { rowdata };
}
}
export default getModule(Inspectionrule);

@ -0,0 +1,393 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">检验单位</view>
<view class="right"></view>
</view>
<!-- <view class="single-left">
<u-input @blur="onblur()" @focus="onfocus" @click="onclick" style="width: 100%; background-color: #ffffff; margin: auto;" v-model="orderNo" placeholder="请选择检验项目" />
</view> -->
<view style="margin: 20px">
<wyb-table ref="table" :headers="headers" :contents="list" width="auto" first-col-bg-color="#ffffff" checker-color="#000000" @onCheck="changeContent" show-left-and-right-border />
</view>
<u-select v-model="show" mode="mutil-column-auto" :list="list" @confirm="confirm"></u-select>
<!-- <view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确定</u-button>
</u-col>
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
// import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
},
})
export default class ProductionQtyInsplist extends BasePage {
model = model;
rowdata: any = {};
formdata: any = {};
show: any = false;
headers = [
// {
// label: '',
// key: 'index',
// width: 100,
// },
{
label: '单位编号',
key: 'ruleName',
width: 300,
},
{
label: '名称',
key: 'standardValue',
// width: ,
},
{
label: '单位',
key: 'unit',
},
];
tableData: any = [];
orderNo: any = '';
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
isvalue = false;
ischecked = false;
radiomodal = false;
list: any = [
{
value: 1,
label: '中国',
children: [
{
value: 2,
label: '广东',
children: [
{
value: 3,
label: '深圳',
},
{
value: 4,
label: '广州',
},
],
},
{
value: 5,
label: '广西',
children: [
{
value: 6,
label: '南宁',
},
{
value: 7,
label: '桂林',
},
],
},
],
},
{
value: 8,
label: '美国',
children: [
{
value: 9,
label: '纽约',
children: [
{
value: 10,
label: '皇后街区',
},
],
},
],
},
];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
onShow() {
// this.query();
}
onblur() {
console.log('333');
this.show = true;
}
onfocus() {
console.log('222');
this.show = false;
}
onclick() {
console.log('111');
this.show = true;
}
confirm(e) {
console.log(e, this.page, this.rowdata);
}
cancel() {
this.isshow = false;
}
goback() {
uni.redirectTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
});
}
async onLoad() {
console.log('111');
}
changeContent(e) {
//console.log('eee', e.data);
this.rowdata = e.data[0]?.lineData;
// uni.$emit('changeContent',e);
}
onSubmit() {
//debugger
//console.log('xssss',this.rowdata);
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择至少一个备件');
return;
}
this.isshow = true;
// this.uni.navigateTo({
// url: this.page.mes.ProductionQtyInspDetail,
// });
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.single-left {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-left: 20px;
padding-right: 20px;
// view {
// width:50px;
// height: 100%;
// line-height: 100rpx;
// font-size: 15px;
// // font-weight: bold;
// margin: auto;
// }
}
.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;
padding: 9px 0px;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
// .wyb-table-scroll-view {
// width: auto !important;
// }
.form {
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-around;
}
::v-deep .uni-input-input {
padding: 10px 5px;
box-sizing: border-box;
outline: none;
border: none;
}
::v-deep.uni-input-placeholder {
left: 6px;
}
</style>

@ -0,0 +1,65 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.equipment.Inspectionunit',
})
export class Inspectionunit extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
async getTodayTask(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTodayTask, { params: params });
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async getTaskRecord(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTaskRecord, { params: params });
const getTaskRecordList = result.data;
return { getTaskRecordList };
}
//巡检列表巡检记录
OrderInfList: any = [];
@MutationAction
async getInspectionOrderInfo(workId: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.selectPdaRepairWorkOrderDetails + '/' + workId);
const OrderInfList: [] = result.data;
return { OrderInfList };
}
SubmitCode: any = '';
//巡检提交
@MutationAction
async updateInspectionRecord(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateDowntime, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
@MutationAction
async updateMaintenanceRecords(params: any) {
const result: any = await http.put(url.lanjuequipment.product.Repair.updateMaintenanceRecords, params);
const SubmitCode: [] = result;
return { SubmitCode };
}
Checklist: any = [];
@MutationAction
async queryhandChecklist(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.list, { params: params });
const Checklist: any = result.rows;
console.log('this.tableData', Checklist);
// debugger
return { Checklist };
}
@MutationAction
async rowdatanull() {
const rowdata: [] = [];
return { rowdata };
}
}
export default getModule(Inspectionunit);

@ -0,0 +1,303 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">采购入库(SRM)详细</view>
<view class="right"></view>
</view>
<view class="scroll">
<view v-for="item in list" :key="item.id">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="row-list">
<view class="list-item"> 物资编码: </view>
<view> 4500331750 </view>
</view>
<view class="row-list">
<view class="list-item"> 物资名称: </view>
<view> 40000006954 </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 入库数量: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="list-item"> 库位码: </view>
<view> 1000/0(PC) </view>
</view>
</view>
</u-form>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class PurchaseWHSRM extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
form3: any = {};
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
border = true;
height = 100;
autoHeight = true;
imgList: any = [];
imgUrlList: any = [];
isqualified = [
{
label: '合格',
value: '1',
},
{
label: '不合格',
value: '0',
},
];
productCodeList: any = {};
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
this.productCodeList = this.model.productCodeList[0];
this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.scroll {
// margin-top: 120rpx;
// padding-left: 30rpx;
// padding-right: 16rpx;
// margin-bottom: 20rpx;
// overflow: scroll;
// padding-top: 20rpx;
.form2 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
.zhuangtai {
background: #a7a0a04a;
width: 224rpx;
margin-right: -27rpx;
border: 2rpx solid #a7a0a04a;
border-radius: 12rpx;
text-align: center;
margin-bottom: 10rpx;
}
.zhuangtai[data-state='1'] {
color: green;
}
.zhuangtai[data-state='0'] {
color: blue;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.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;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,56 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
//import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.raw.Materialinspection',
})
export class Materialinspection extends VuexModule {
WlList = [];
@MutationAction
async queryLocation() {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
});
const WlList = result.data.map((_: any) => ({
label: _.locationCode,
value: _.locationCode,
}));
return { WlList };
}
orderNoItemList: any = [];
productCodeList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
orderNo,
});
const orderNoItemList = result.data;
// const productCodeList = result.data.map((_: any) => ({
// label: _.productCode,
// value: _.productCode,
// }));
return { orderNoItemList };
}
SubmitCode: any = '';
@MutationAction
async OnSubmit(params: any) {
const result: any = await http.post('', params);
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
}
}
export default getModule(Materialinspection);

@ -0,0 +1,303 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">采购入库(SRM)详细</view>
<view class="right"></view>
</view>
<view class="scroll">
<view v-for="item in list" :key="item.id">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="row-list">
<view class="list-item"> 物资编码: </view>
<view> 4500331750 </view>
</view>
<view class="row-list">
<view class="list-item"> 物资名称: </view>
<view> 40000006954 </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 入库数量: </view>
<view> 100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="list-item"> 库位码: </view>
<view> 1000/0(PC) </view>
</view>
</view>
</u-form>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class PurchaseWHSRM extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
form3: any = {};
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
border = true;
height = 100;
autoHeight = true;
imgList: any = [];
imgUrlList: any = [];
isqualified = [
{
label: '合格',
value: '1',
},
{
label: '不合格',
value: '0',
},
];
productCodeList: any = {};
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
this.productCodeList = this.model.productCodeList[0];
this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
barcode: any = '';
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.scroll {
// margin-top: 120rpx;
// padding-left: 30rpx;
// padding-right: 16rpx;
// margin-bottom: 20rpx;
// overflow: scroll;
// padding-top: 20rpx;
.form2 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
.zhuangtai {
background: #a7a0a04a;
width: 224rpx;
margin-right: -27rpx;
border: 2rpx solid #a7a0a04a;
border-radius: 12rpx;
text-align: center;
margin-bottom: 10rpx;
}
.zhuangtai[data-state='1'] {
color: green;
}
.zhuangtai[data-state='0'] {
color: blue;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.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;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

@ -0,0 +1,979 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">历史记录</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" label-width="180rpx">
<!-- 订单 -->
<!-- <u-form-item label="检验节点"> -->
<u-input @blur="onblur()" @focus="onfocus" @click="onclick" :border="true" v-model="selectvalue" placeholder="请选择检验节点" style="overflow: hidden" />
<!-- </u-form-item> -->
</u-form>
<view class="scroll">
<view v-for="item in list" :key="item.id" @dblclick="onFormDoubleClick(item)">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="righttitle">
<view class="boder-icon-top zhuangtai" data-state="0">待收货</view>
</view>
<view class="row-list">
<view class="list-item"> 来料批次号: </view>
<view> 4500331750 </view>
</view>
<view class="row-list">
<view class="list-item"> 订单号: </view>
<view> 40000006954 </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 物料号: </view>
<view> tp100 </view>
</view>
<view class="row-list-item">
<view class="list-item"> 物料名称: </view>
<view> 12335 </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 收货数量: </view>
<view> 100/0 </view>
</view>
</view>
<view a:if="true" class="righttitle">
<view @click.stop="onPass(item)" class="boder-icon-rigth"> 查看 </view>
</view>
</view>
</u-form>
</view>
</view>
<view>
<u-popup v-model="show" mode="center" width="98%">
<view class="selectlist">
<view class="item" v-for="(item, index) in detailList" :key="index">
<div class="item1">检查项: {{ item.itemName }}</div>
<div class="item1">检查结果: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div>检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div>检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" @focus="focus()" @blur="blur(item1, item1.actualValue, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</div>
</div>
</view>
<div style="text-align: center; margin-top: 10px">
<u-button style="width: 100%; height: 35px; margin: auto" @click="onOk" size="mini" type="primary">确认</u-button>
</div>
</view>
</u-popup>
<view v-if="show" class="mask"></view>
</view>
<u-select v-model="showselect" mode="mutil-column-auto" :list="selectlist" @confirm="confirmselect"></u-select>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm">
<div class="tagsbox">
<u-tag v-for="(item, index) in tagslist" class="tags" :key="item.id" :text="item.tagsname" type="info" closeable @close="tagClick(index)" />
</div>
<div class="upload-name">
<div>
<u-input :border="true" v-model="tagsvalue" style="overflow: hidden" />
</div>
<div>
<u-button style="width: 100px; height: 35px; margin-left: 5px" @click="ontagsadd" size="mini" type="primary">确认</u-button>
</div>
</div>
</u-modal>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { any } from 'lodash/fp';
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class PurchaseWHSRM extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
show = false;
showselect = false;
isshow = false;
form3: any = {
barCodewl: '',
};
listselect: any = [
{
type: 1,
name: '合格',
radiovalue: null,
},
{
type: 0,
name: '不合格',
radiovalue: null,
},
];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
selectvalue: any = '';
border = true;
height = 100;
autoHeight = true;
imgList: any = [];
imgUrlList: any = [];
isqualified = [
{
label: '合格',
value: '1',
},
{
label: '不合格',
value: '0',
},
];
selectlist: any = [
{
value: 1,
label: '中国',
children: [
{
value: 2,
label: '广东',
children: [
{
value: 3,
label: '深圳',
},
{
value: 4,
label: '广州',
},
],
},
{
value: 5,
label: '广西',
children: [
{
value: 6,
label: '南宁',
},
{
value: 7,
label: '桂林',
},
],
},
],
},
{
value: 8,
label: '美国',
children: [
{
value: 9,
label: '纽约',
children: [
{
value: 10,
label: '皇后街区',
},
],
},
],
},
];
productCodeList: any = {};
detailList: any = [
{
createBy: 'job',
createTime: '2023-12-01 09:25:38',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '0d28bb4dc1b14186a0ad7610c4ea98a4',
code: null,
orderCode: 'O20231201001',
parentCode: null,
itemCode: '20231128002',
itemName: '纸盒料架',
itemMethod: '目视、触摸',
itemType: 'spotInspection',
itemTypeName: '点检',
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
standardList: [
{
createBy: 'job',
createTime: '2023-12-01 09:25:38',
updateBy: null,
updateTime: '2023-12-01 09:30:55',
remark: null,
poolName: null,
deptId: null,
id: 'c0c4cc8a651f49ae9a63b4397c8745f4',
code: null,
parentCode: '0d28bb4dc1b14186a0ad7610c4ea98a4',
orderCode: 'O20231201001',
standardType: 'qualitative',
standardName: '检查料架有没有松动,目视有没有异物堵塞线体',
detailUpLimit: null,
detailDownLimit: null,
detailUnit: null,
detailReach: '1',
actualValue: null,
detailError: null,
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
picturePath: null,
picturePaths: null,
standardTypeName: null,
errorFlag: '0',
faultType: null,
repairReach: null,
repairValue: null,
repairPicture: null,
itemName: null,
checkPictrueList: [],
},
],
itemTools: null,
},
{
createBy: 'job',
createTime: '2023-12-01 09:25:38',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '34220cb558004bd09e08fdf14fada352',
code: null,
orderCode: 'O20231201001',
parentCode: null,
itemCode: '20231128003',
itemName: '入盒机构',
itemMethod: '目视、触摸',
itemType: 'spotInspection',
itemTypeName: '点检',
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
standardList: [
{
createBy: 'job',
createTime: '2023-12-01 09:25:38',
updateBy: null,
updateTime: '2023-12-01 09:30:55',
remark: null,
poolName: null,
deptId: null,
id: '0b2277d4760c4063b3981a52675ca96b',
code: null,
parentCode: '34220cb558004bd09e08fdf14fada352',
orderCode: 'O20231201001',
standardType: 'qualitative',
standardName: '打开入盒机前用气枪清理表面灰尘、废料',
detailUpLimit: null,
detailDownLimit: null,
detailUnit: null,
detailReach: '1',
actualValue: null,
detailError: null,
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
picturePath: null,
picturePaths: null,
standardTypeName: null,
errorFlag: '0',
faultType: null,
repairReach: null,
repairValue: null,
repairPicture: null,
itemName: null,
checkPictrueList: [],
},
{
createBy: 'job',
createTime: '2023-12-01 09:25:38',
updateBy: null,
updateTime: '2023-12-01 09:30:55',
remark: null,
poolName: null,
deptId: null,
id: '6152eff58de14a86af1cb52a010c8bf7',
code: null,
parentCode: '34220cb558004bd09e08fdf14fada352',
orderCode: 'O20231201001',
standardType: 'qualitative',
standardName: '检查入盒机构传动部、螺丝有没有松动',
detailUpLimit: null,
detailDownLimit: null,
detailUnit: null,
detailReach: '1',
actualValue: null,
detailError: null,
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
picturePath: null,
picturePaths: null,
standardTypeName: null,
errorFlag: '0',
faultType: null,
repairReach: null,
repairValue: null,
repairPicture: null,
itemName: null,
checkPictrueList: [],
},
],
itemTools: null,
},
{
createBy: 'job',
createTime: '2023-12-04 14:32:04',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '32e34709fd2846e79b46fce9c1dad477',
code: null,
orderCode: 'O20231204005',
parentCode: null,
itemCode: '20231117006',
itemName: '皮带、轴承、齿轮',
itemMethod: '试机',
itemType: 'spotInspection',
itemTypeName: '点检',
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
standardList: [
{
createBy: 'job',
createTime: '2023-12-04 14:32:04',
updateBy: null,
updateTime: '2023-12-04 14:34:01',
remark: null,
poolName: null,
deptId: null,
id: '8a107dae72d1469590cba36066f46621',
code: null,
parentCode: '32e34709fd2846e79b46fce9c1dad477',
orderCode: 'O20231204005',
standardType: 'quantify',
standardName: '机油量',
detailUpLimit: 30.0,
detailDownLimit: 10.0,
detailUnit: 'ml',
detailReach: '0',
actualValue: 0.0,
detailError: null,
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
picturePath: null,
picturePaths: null,
standardTypeName: null,
errorFlag: null,
faultType: null,
repairReach: null,
repairValue: null,
repairPicture: null,
itemName: null,
checkPictrueList: [],
},
{
createBy: 'job',
createTime: '2023-12-04 14:32:04',
updateBy: null,
updateTime: '2023-12-04 14:34:01',
remark: null,
poolName: null,
deptId: null,
id: '99ed048515a0456c9126bd83da298e5d',
code: null,
parentCode: '32e34709fd2846e79b46fce9c1dad477',
orderCode: 'O20231204005',
standardType: 'qualitative',
standardName: '运行流畅无异响',
detailUpLimit: null,
detailDownLimit: null,
detailUnit: null,
detailReach: '0',
actualValue: null,
detailError: null,
factoryCode: '1000',
attr1: null,
attr2: null,
attr3: null,
delFlag: '0',
picturePath: null,
picturePaths: null,
standardTypeName: null,
errorFlag: null,
faultType: null,
repairReach: null,
repairValue: null,
repairPicture: null,
itemName: null,
checkPictrueList: ['http://localhost:9300/downLoadFile?id=656d72d339e7164f038e8baa&fileName=cc764c41967d4cc199193090f4a1b443_th.jpg', 'http://localhost:9300/downLoadFile?id=656d72d639e7164f038e8bac&fileName=dda84cfe50dc462ba731490000c6d6bc.png'],
},
],
itemTools: null,
},
];
equipmentindex: any = [];
tagsvalue: any = '';
tagslist: any = [];
//
tagClick(index) {
this.tagslist.splice(index, 1);
}
ontagsadd() {
let arr1 = {};
if (this.tagsvalue == '' || this.tagsvalue == undefined) {
// this.customToast('');
(this.$refs.uToast as any).show({
title: '请输入内容',
type: 'default',
});
return;
}
arr1 = {
tagsname: this.tagsvalue,
};
this.tagslist.push(arr1);
}
onPass(item) {
console.log('1234567', item);
this.show = true;
}
radioGroupChange(item, value, index, index1) {
console.log(item, value, index, index1);
}
radioChange(e) {
console.log(e, '11111');
}
blur(item, value, index, index1) {
console.log(item, value, index, index1);
this.equipmentindex = [];
this.equipmentindex.push(index);
this.equipmentindex.push(index1);
this.isshow = true;
}
focus() {
this.isshow = true;
}
changeinput(e) {
console.log(e);
}
input(e) {
console.log(e);
}
nopoup() {
this.show = false;
this.form3.barCodewl = '';
}
onblur() {
console.log('333');
this.showselect = true;
}
onfocus() {
console.log('222');
this.showselect = false;
}
onclick() {
console.log('111');
this.showselect = true;
}
//
onOk() {
console.log('1234567');
//await this.model.OnSubmit(this.form3.barCodewl);
}
confirmselect(e) {
console.log(e);
}
confirm() {
console.log(this.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]]);
}
cancel() {
this.isshow = false;
}
async onFormDoubleClick(item) {
console.log('双击', item);
//await this.model.OnSubmit(item.id);
this.uni.navigateTo({
url: this.page.wms.PurchaseWHSRMDetail,
});
}
//
async query() {
// if (this.orderNo == '' || this.orderNo.length == 0) {
// this.customToast('nficl');
// return;
// }
// await this.model.queryOrderNo(this.orderNo);
// this.list = model.orderNoItemList;
}
//
tidan() {
console.log('11111');
}
histroyItem: any = {};
barcode: any = '';
//
scanwl() {
const self: PurchaseWHSRM = this as PurchaseWHSRM;
const showToast = (message: string) => {
uni.showToast({
title: message,
icon: 'none',
});
};
uni.scanCode({
onlyFromCamera: true,
success: function (res) {
//showToast(res.result);
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
self.form3.barCodewl = res.result;
//that.getByPoint();
},
fail: function () {
showToast('扫码不成功');
},
});
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-left {
width: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
.row {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 1;
}
}
.scroll {
// margin-top: 120rpx;
// padding-left: 30rpx;
// padding-right: 16rpx;
// margin-bottom: 20rpx;
// overflow: scroll;
// padding-top: 20rpx;
.form2 {
background-color: #fff;
padding: 0rpx 25rpx 25rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
color: #8d8989;
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
.zhuangtai {
background: #a7a0a04a;
width: 224rpx;
margin-right: -27rpx;
border: 2rpx solid #a7a0a04a;
border-radius: 12rpx;
text-align: center;
margin-bottom: 10rpx;
}
.zhuangtai[data-state='1'] {
color: green;
}
.zhuangtai[data-state='0'] {
color: blue;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.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;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
.form3 {
padding: 20rpx;
//border-radius: 10rpx;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.poupitem {
display: flex;
flex-direction: row;
justify-content: space-around;
margin: 20rpx;
.pouptitle {
width: 25%;
}
.poupcontent {
border: 1px solid rgba(128, 128, 128, 0.2);
}
}
}
.poupbutton {
display: flex;
justify-content: space-around;
}
.mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* 半透明的黑色背景 */
z-index: 9999; /* 确保遮罩层在最上层 */
}
.selectlist {
margin-top: 15px;
border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
.quest {
// width: 367px;
// border-radius: 5px;
// border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #ffffff;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
font-size: 18px;
}
.details {
display: flex;
font-size: 16px;
// justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
}
.single-left {
display: flex;
// align-items: center;
// justify-content: space-around;
text-align: center;
margin-top: 12px;
margin-bottom: 20px;
border: 1px solid #eee;
}
.item {
margin-top: 15px;
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
// background-color: #ffffff;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {
margin-bottom: 3px;
white-space: 1px;
font-size: 15px;
font-weight: 600;
}
.item2 {
display: flex;
align-content: center;
justify-content: space-between;
.select {
font-size: 15px;
font-weight: 400;
display: flex;
// margin-left: 19px;
}
.input-box {
font-size: 13px;
font-weight: 400;
display: flex;
align-content: center;
margin-top: 2px;
.input {
font-size: 12px;
width: 65px;
padding: 1px 8px;
height: 20px;
box-sizing: border-box;
border: 1px solid #b6b6b6;
margin-left: 6px;
display: inline-block;
margin-right: 6px;
border-radius: 4px;
position: relative;
}
}
}
}
}
.modal {
.upload-name {
padding: 10px 20px;
display: flex;
justify-content: space-between;
.name {
font-size: 17px;
font-weight: 600;
}
}
.tagsbox {
padding: 10px 20px;
.tags {
margin-right: 5px;
}
}
}
}
</style>

@ -0,0 +1,56 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
//import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.raw.Records',
})
export class Records extends VuexModule {
WlList = [];
@MutationAction
async queryLocation() {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
});
const WlList = result.data.map((_: any) => ({
label: _.locationCode,
value: _.locationCode,
}));
return { WlList };
}
orderNoItemList: any = [];
productCodeList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
loginName: session.loginName,
orderNo,
});
const orderNoItemList = result.data;
// const productCodeList = result.data.map((_: any) => ({
// label: _.productCode,
// value: _.productCode,
// }));
return { orderNoItemList };
}
SubmitCode: any = '';
@MutationAction
async OnSubmit(params: any) {
const result: any = await http.post('', params);
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
}
}
export default getModule(Records);

@ -0,0 +1,198 @@
<template>
<view class="page-raw-ingoods">
<view class="header">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="goback()" />
</view>
<view class="title">设备管理</view>
<view class="right"></view>
</view>
<view class="container">
<view class="container1">
<view class="title">
<div class="">任务管理</div>
</view>
<view class="content">
<div class="menu1">
<div class="item1">物料质检</div>
<div class="item2">4</div>
</div>
<div class="menu1">
<div class="item1">不合格处置</div>
<div class="item2">4</div>
</div>
</view>
</view>
</view>
<view class="container">
<view class="toptitle">
<view class="shuxian"></view>
<view class="title"> 基础操作 </view>
</view>
<view class="tubiao">
<u-icon
v-for="item in newmenuList"
:key="item.path"
@click="
uni.navigateTo({
url: item.path,
})
"
:label="item.menuName"
label-pos="bottom"
size="80"
name="../../static/icons/icon-01.png"
></u-icon>
</view>
</view>
<view class="container">
<view class="toptitle">
<view class="shuxian"></view>
<view class="title"> 基础资料 </view>
</view>
<view class="tubiao">
<u-icon
v-for="item in newmenuList2"
:key="item.path"
@click="
uni.navigateTo({
url: item.path,
})
"
:label="item.menuName"
label-pos="bottom"
size="80"
name="../../static/icons/icon-01.png"
></u-icon>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import { session } from '@/store/modules/session';
@Component
export default class RawAppointment extends BasePage {
childData: any;
menuList = session.getMenus;
newmenuList: any = [];
newmenuList2: any = [];
onReady() {
this.newmenuList = this.menuList.filter((item) => item.perms == 'qualityCZ');
this.newmenuList2 = this.menuList.filter((item) => item.perms == 'qualityJC');
console.log('1234', this.menuList);
}
goback() {
uni.navigateTo({
url: `/pages/shouye/index`,
});
}
}
</script>
<style lang="scss" scoped>
.page-raw-ingoods {
background-color: #f4f7fc;
padding-top: 150rpx;
min-height: 100%;
.header {
position: fixed;
top: 0;
// padding-top: 18px;
left: 0;
right: 0;
z-index: 99;
display: -webkit-box;
display: -webkit-flex;
display: flex;
background-color: #d9001b;
/* height: 46px; */
line-height: 46px;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
box-shadow: 0 1px 2px #e87675;
padding: 60rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.container {
background-color: #ffffff;
padding: 20rpx;
border: 2rpx solid #9093992e;
margin-top: 12rpx;
border-radius: 4rpx;
// padding: 30rpx 15rpx 0;
.toptitle {
display: flex;
flex-direction: row;
padding: 6rpx;
.shuxian {
border: 2rpx solid red;
margin-right: 24rpx;
}
.title {
// margin-bottom: 10rpx;
}
}
.tubiao {
margin-left: 40rpx;
}
.container1 {
width: 280px;
margin: auto;
height: 120px;
box-shadow: 0px 0px 6px 0px #a6a3a3;
border-radius: 3px;
padding: 20rpx;
.title {
font-weight: 600;
}
.content {
display: flex;
margin-top: 10px;
.menu1 {
width: 50%;
text-align: center;
.item1 {
margin-top: 10px;
}
.item2 {
margin-top: 10px;
margin-bottom: 10px;
color: #94d1f4;
}
}
.menu1:first-child {
border-right: 1px solid #d8d6d6;
}
}
}
}
}
::v-deep .u-icon {
padding: 17rpx;
}
::v-deep .u-icon__label {
width: 124rpx;
text-align: center;
}
</style>

@ -85,7 +85,7 @@ export default class RawHome extends BasePage {
poolName: poolName,
});
}
this.newmenuList = this.menuList.filter((item) => item.perms == 'wms' || item.perms == 'mes' || item.perms == 'equipment');
this.newmenuList = this.menuList.filter((item) => item.perms == 'wms' || item.perms == 'mes' || item.perms == 'equipment' || item.perms == 'quality');
console.log('1234', this.menuList);
}
onLoad() {

@ -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.13';
version = '0.0.14';
checkversion: any = {};
sessiondata: any = '';
onLoad() {

@ -14,30 +14,30 @@
<view class="list">
<view class="row-list">
<view class="list-item"> 物资编码: </view>
<view> 4500331750 </view>
<view> {{ item.materialCode }} </view>
</view>
<view class="row-list">
<view class="list-item"> 物资名称: </view>
<view> 40000006954 </view>
<view class="list-item"> 物资描述: </view>
<view> {{ item.materialDesc }} </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> 100 </view>
<view> {{ item.sn }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view> </view>
<view> </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 入库数量: </view>
<view> 100 </view>
<view> {{ item.amount }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> </view>
<view> {{ item.userDefined4 }} </view>
</view>
</view>
<view class="row-list">
@ -55,7 +55,7 @@ import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
@ -63,7 +63,7 @@ import model from './model';
})
export default class PurchaseWHPO extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
list: any = [];
form3: any = {};
// remove: any = {};
// async onReady() {
@ -89,16 +89,20 @@ export default class PurchaseWHPO extends BasePage {
value: '0',
},
];
orderNoItemListdes: any = '';
productCodeList: any = {};
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
detailsinfo: any = '';
async onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
this.detailsinfo = JSON.parse(str);
let query = {
poNo: this.detailsinfo.poNo,
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderWarehousingPda(query);
this.list = model.orderNoItemList;
}
await this.model.queryOrderNo(this.orderNo);
this.productCodeList = this.model.productCodeList[0];
this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
barcode: any = '';

@ -20,10 +20,10 @@
</view>
<!-- 订单 -->
<u-form-item label="物料编码">
<u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" />
<u-input :border="true" v-model="materialCode" placeholder="" @confirm="query" style="overflow: hidden" />
</u-form-item>
<!-- 机台 -->
<u-form-item>
<!-- <u-form-item>
<view class="row">
<view>收货仓库</view>
<view>0001-小榄物料仓</view>
@ -32,7 +32,7 @@
<view>工厂</view>
<view>1000</view>
</view>
</u-form-item>
</u-form-item> -->
</u-form>
<view class="scroll">
@ -40,38 +40,54 @@
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="righttitle">
<view class="boder-icon-top zhuangtai" data-state="0">待收货</view>
<view class="boder-icon-top zhuangtai" data-state="0">{{ item.activeFlag == 0 ? '未入库' : item.activeFlag == 1 ? '正在入库' : '收货入库' }}</view>
</view>
<view class="row-list">
<view class="list-item"> 入库单号: </view>
<view> 4500331750 </view>
<view>{{ item.poNo }} </view>
</view>
<view class="row-list">
<view class="list-item"> 物料编码: </view>
<view> 40000006954 </view>
<view>{{ item.materialCode }} </view>
</view>
<view class="row-list">
<view class="list-item"> 物料名称: </view>
<view> 纸箱 </view>
<view>{{ item.materialDesc }} </view>
</view>
<view class="row-list">
<view class="list-item"> 托盘号: </view>
<view>{{ item.sn }} </view>
</view>
<!-- <view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> tp100 </view>
<view>{{item.sn}}</view>
</view>
<view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view> 12335 </view>
</view>
</view> -->
<view class="row-list">
<view class="list-item"> 工厂号: </view>
<view>{{ item.factoryCode }}</view>
</view>
<view class="row-list">
<view class="list-item"> 收货仓库: </view>
<view>{{ item.whCode }}</view>
</view>
<!-- <view class="row-list">
<view class="list-item"> 数量: </view>
<view>{{ item.amount }}</view>
</view> -->
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 应入/已入: </view>
<view> 100/0 </view>
<view class="list-item">数量: </view>
<view> {{ item.amount }}</view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> </view>
<view>{{ item.userDefined4 }}</view>
</view>
</view>
<view a:if="true" class="righttitle">
@ -82,11 +98,11 @@
</view>
</view>
<view>
<u-popup v-model="show" mode="center" width="550rpx" height="260rpx">
<u-popup v-model="show" mode="center" width="580rpx" height="260rpx">
<view class="form3">
<view class="poupitem">
<view class="pouptitle">库位码</view>
<u-search placeholder="请扫描" v-model="form3.barCodewl" :show-action="false"></u-search>
<view style="line-height: 32px" class="pouptitle">库位码</view>
<u-search placeholder="请扫描" v-model="form3.wlCode" :show-action="false"></u-search>
<!-- <u-input @click="scanwl" class="poupcontent" :clearable="false" v-model="form3.barCodewl" placeholder="" style="overflow: hidden" /> -->
</view>
<!-- <view class="poupitem">
@ -98,17 +114,13 @@
<u-input class="poupcontent" :clearable="false" v-model="form3.productDescZh" placeholder="" style="overflow: hidden" />
</view> -->
</view>
<view class="poupbutton">
<u-row>
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onOk" size="mini" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button size="mini" type="error" @click="nopoup"></u-button>
</u-col>
</u-row>
<view class="poupbutton" style="margin-top: 10px">
<div>
<u-button style="width: 100px; height: 35px" @click="onOk" size="mini" type="primary">确定</u-button>
</div>
<div>
<u-button style="width: 100px; height: 35px" size="mini" type="error" @click="nopoup"></u-button>
</div>
</view>
</u-popup>
<view v-if="show" class="mask"></view>
@ -121,7 +133,7 @@ import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
@ -129,7 +141,7 @@ import model from './model';
})
export default class PurchaseWHPO extends BasePage {
model = model;
list: any = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
list: any = [];
show = false;
form3: any = {};
// remove: any = {};
@ -141,6 +153,7 @@ export default class PurchaseWHPO extends BasePage {
// this.remove = e.pickerName;
// }
orderNo: any = '';
materialCode: any = '';
border = true;
height = 100;
autoHeight = true;
@ -158,25 +171,55 @@ export default class PurchaseWHPO extends BasePage {
];
productCodeList: any = {};
clickitem: any = '';
//
onPass(item) {
console.log('1234567', item);
this.clickitem = item;
this.show = true;
this.form3 = {};
}
nopoup() {
this.show = false;
this.form3.barCodewl = '';
}
//
onOk() {
console.log('1234567');
//await this.model.OnSubmit(this.form3.barCodewl);
async onOk() {
console.log(this.form3);
if (this.form3.wlCode == '' || this.form3.wlCode == undefined) {
(this.$refs.uToast as any).show({
title: '库位编码不能为空',
type: 'default',
});
return;
}
let query = this.clickitem;
// query.applyList = this.Sparepartlist;
query.wlCode = this.form3.wlCode;
await this.model.PurchaseOrderRKPda(query);
console.log(this.model.SubmitCode);
if (this.model.SubmitCode.code == 200) {
(this.$refs.uToast as any).show({
title: '成功',
type: 'default',
});
this.show = false;
this.query();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: this.model.SubmitCode.msg,
});
}
}
async onFormDoubleClick(item) {
console.log('双击', item);
//await this.model.OnSubmit(item.id);
// uni.navigateTo({
// url: `/pages/equipment/Upkeep/repairing?listitem=` + encodeURIComponent(JSON.stringify(item)),
// });
this.uni.navigateTo({
url: this.page.wms.PurchaseWHPODetail,
url: this.page.wms.PurchaseWHPODetail + '?listitem=' + encodeURIComponent(JSON.stringify(item)),
});
}
//
@ -188,12 +231,30 @@ export default class PurchaseWHPO extends BasePage {
});
return;
}
await this.model.queryOrderNo(this.orderNo);
// this.list = model.orderNoItemList;
let query = {
poNo: this.orderNo,
materialCode: this.materialCode,
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderWarehousingPda(query);
this.list = model.orderNoItemList;
}
//
tidan() {
console.log('11111');
async tidan() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
let query = {
poNo: this.orderNo,
materialCode: this.materialCode,
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderWarehousingPda(query);
this.list = model.orderNoItemList;
}
histroyItem: any = {};
barcode: any = '';
@ -489,7 +550,7 @@ export default class PurchaseWHPO extends BasePage {
}
.poupbutton {
display: flex;
justify-content: center;
justify-content: space-around;
}
.mask {
position: fixed;

@ -1,7 +1,7 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
// import { url } from '@/utils/url';
import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
@ -12,29 +12,34 @@ import { session } from '@/store/modules/session';
export class PurchaseWHPO extends VuexModule {
WlList = [];
orderNoItemList: any = [];
productCodeList: any = [];
orderNoItemListdes: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.post('', {
// factoryCode: session.factoryCode,
factoryCode: session.PoolName,
procureCode: orderNo,
materialCode: '',
});
async PurchaseOrderWarehousingPda(data: any) {
const result: any = await http.post(url.lanjuwms.raw.PurchaseWHPO.PurchaseOrderWarehousingPda, data);
const orderNoItemList = result.data;
return { orderNoItemList };
}
SubmitCode: any = '';
@MutationAction
async OnSubmit(params: any) {
const result: any = await http.post('', params);
const SubmitCode = result.code;
async PurchaseOrderRKPda(data: any) {
const result: any = await http.post(url.lanjuwms.raw.PurchaseWHPO.PurchaseOrderRKPda, data);
const SubmitCode: [] = result;
return { SubmitCode };
}
DictTypeList: any = [];
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
async Stashlist() {
const result: any = await http.post(url.lanjuwms.raw.PurchaseWHPO.list, {
factoryCode: session.FactoryCode,
});
const DictTypeListoild: [] = result.data;
const DictTypeList = DictTypeListoild.map((item: any) => ({
label: item.warehouseName,
value: item.warehouseCode,
...item,
}));
return { DictTypeList };
}
}

@ -89,7 +89,7 @@ export default class receivePO extends BasePage {
this.detailsinfo = JSON.parse(str);
let query = {
id: this.detailsinfo.id,
factoryCode: '1000',
factoryCode: this.session.FactoryCode,
};
await this.model.PurchaseOrderdetailPda(query);
this.orderNoItemListdes = this.model.orderNoItemListdes;

@ -99,7 +99,7 @@
</view>
<view class="poupitem">
<view class="pouptitle">收货仓库</view>
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="form3.whCode" :options="whList" />
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="productCodeTypeList.value" :options="whList" />
</view>
</view>
<view class="poupbutton" style="margin-top: 10px">
@ -133,6 +133,7 @@ export default class receivePO extends BasePage {
whList: any = [];
show = false;
form3: any = {};
productCodeTypeList: any = {};
moren = '选择仓库';
// remove: any = {};
// async onReady() {
@ -161,17 +162,26 @@ export default class receivePO extends BasePage {
];
clickitem: any = '';
productCodeList: any = {};
async onReady() {
await this.model.Stashlist();
this.whList = model.DictTypeList;
//this.remove = this.model.WlList[0];
}
//
onPass(item) {
this.clickitem = item;
this.show = true;
this.form3 = {};
this.productCodeTypeList = {};
}
nopoup() {
this.show = false;
this.form3 = {};
this.productCodeTypeList = {};
}
//
async onOk() {
console.log(this.form3);
if (this.form3.incomeBatchNo == '' || this.form3.incomeBatchNo == undefined) {
(this.$refs.uToast as any).show({
title: '批次号不能为空',
@ -193,7 +203,7 @@ export default class receivePO extends BasePage {
});
return;
}
if (this.form3.whCode == '' || this.form3.whCode == undefined) {
if (this.productCodeTypeList.value == '' || this.productCodeTypeList.value == undefined) {
(this.$refs.uToast as any).show({
title: '请选择仓库',
type: 'default',
@ -206,22 +216,21 @@ export default class receivePO extends BasePage {
query.workStatus = this.form3.workStatus;
query.sn = this.form3.sn;
query.planNumber = this.form3.planNumber;
query.whCode = this.form3.whCode;
await this.model.PurchaseOrderdetailPda(query);
if (this.model.SubmitCode.code == '200') {
query.whCode = this.productCodeTypeList.warehouseCode;
query.factoryCode = session.FactoryCode;
await this.model.PurchaseOrderdeliPda(query);
console.log(this.model.SubmitCode);
if (this.model.SubmitCode.code == 200) {
(this.$refs.uToast as any).show({
title: '成功',
type: 'default',
});
setTimeout(() => {
uni.navigateTo({
url: `/pages/equipment/Upkeep/index?listitem=`,
});
}, 1000);
this.show = false;
this.query();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'default',
type: this.model.SubmitCode.msg,
});
}
}
@ -248,7 +257,7 @@ export default class receivePO extends BasePage {
let query = {
procureCode: this.procureCode,
materialCode: this.materialCode,
factoryCode: '1000',
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderPda(query);
this.list = model.orderNoItemList;
@ -265,7 +274,7 @@ export default class receivePO extends BasePage {
let query = {
procureCode: this.procureCode,
materialCode: this.materialCode,
factoryCode: '1000',
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderPda(query);
this.list = model.orderNoItemList;
@ -273,8 +282,14 @@ export default class receivePO extends BasePage {
histroyItem: any = {};
barcode: any = '';
async selectProductlocCode(e: any) {
this.form3 = e.pickerName;
// await this.model.getpalletLocation(this.form3.value); //23
console.log(e.pickerName.warehouseName);
this.productCodeTypeList = e.pickerName;
// let params = {
// factoryCode: session.FactoryCode,
// equipmentTypeCode: this.productCodeTypeList.value,
// };
// await this.model.getAllEquipmentsle(params);
// this.whList = model.DictTypeList;
}
//
async onSubmit() {

@ -2,7 +2,7 @@ import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decor
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
// import { session } from '@/store/modules/session';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
@ -19,19 +19,34 @@ export class receivePO extends VuexModule {
const orderNoItemList = result.data;
return { orderNoItemList };
}
SubmitCode: any = '';
@MutationAction
async PurchaseOrderdeliPda(data: any) {
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdeliPda, data);
const SubmitCode: [] = result;
return { SubmitCode };
}
SubmitCode: any = '';
@MutationAction
async PurchaseOrderdetailPda(data: any) {
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdetailPda, data);
const orderNoItemListdes = result.data;
return { orderNoItemListdes };
}
DictTypeList: any = [];
@MutationAction
async Stashlist() {
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.list, {
factoryCode: session.FactoryCode,
});
const DictTypeListoild: [] = result.data;
const DictTypeList = DictTypeListoild.map((item: any) => ({
label: item.warehouseName,
value: item.warehouseCode,
...item,
}));
return { DictTypeList };
}
}
export default getModule(receivePO);

@ -2,7 +2,7 @@
<view class="page-raw-ingoods">
<view class="header">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
<u-icon class="icon" name="arrow-left" @click="goback()" />
</view>
<view class="title">wms菜单</view>
<view class="right"></view>
@ -529,6 +529,11 @@ export default class RawAppointment extends BasePage {
console.log('1234', this.menuList);
}
goback() {
uni.navigateTo({
url: `/pages/shouye/index`,
});
}
// onLoad(option: { childData: any }) {
// //this.childData = JSON.parse(option.childData);
// }

@ -11,4 +11,7 @@ export const image = {
workarea: {
image1: require('@/static/images/image-01.png'),
},
equipment: {
Repairimage1: require('@/static/images/add.png'),
},
};

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
const qianzhuione = '/dev-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
const qianzhuione = '/prod-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
// const qianzhuione = '/prod-api';
export const url = {
wmspda: {
@ -63,6 +63,28 @@ export const url = {
out: qianzhuione + '/wms/selloutconntray/out',
},
},
raw: {
ReceivePO: {
// 手持 --包材采购单采购收货查询
PurchaseOrderPda: qianzhuione + '/wms/order/PurchaseOrderPda',
// 手持 --包材采购单采购收货操作
PurchaseOrderdeliPda: qianzhuione + '/wms/order/PurchaseOrderdeliPda',
// 手持 --包材采购单采购查询明细
PurchaseOrderdetailPda: qianzhuione + '/wms/order/PurchaseOrderdetailPda',
// 手持 查询仓库管理列表
list: qianzhuione + '/wms/order/listCK',
},
PurchaseWHPO: {
// 手持 --包材采购单采购收货查询
PurchaseOrderWarehousingPda: qianzhuione + '/wms/order/PurchaseOrderWarehousingPda',
// 手持 --包材采购单采购收货操作
PurchaseOrderRKPda: qianzhuione + '/wms/order/PurchaseOrderRKPda',
// 手持 --包材采购单采购查询明细
PurchaseOrderdetailPda: qianzhuione + '/wms/order/PurchaseOrderdetailPda',
// 手持 查询仓库管理列表
list: qianzhuione + '/wms/order/listCK',
},
},
},
// 设备管理
lanjuequipment: {
@ -84,6 +106,53 @@ export const url = {
getInfoRepair: qianzhuione + '/device/devicePDA/queryEquipment/',
// 根据订单号和产品编码查询
addRepairRecord: qianzhuione + '/device/devicePDA/addRepairRecord',
// 备件list
getEquipmentList: qianzhuione + '/device/devicePDA/getEquipmentList',
},
// 维修
Repair: {
// 获取今日任务 获取历史记录
getTodayTask: qianzhuione + '/device/devicePDA/getMaintenancePendRecords',
// 获取历史记录
getTaskRecord: qianzhuione + '/device/devicePDA/getMaintenanceRecords',
// 获取维修工单信息
selectPdaRepairWorkOrderDetails: qianzhuione + '/device/devicePDA/selectPdaRepairWorkOrderDetails',
// 是否维修
updateDowntime: qianzhuione + '/device/devicePDA/updateDowntime',
// 维修提交
updateMaintenanceRecords: qianzhuione + '/device/devicePDA/updateMaintenanceRecords',
// 备件list
list: qianzhuione + '/device/sparePartsLedger/list',
},
// 保养
Upkeep: {
// 是否开机保养
startMaintenanceTask: qianzhuione + '/device/devicePDA/startMaintenanceTask',
},
},
},
// 质量管理
lanjuquality: {
product: {
// 巡检
Inspection: {
// 获取今日任务 获取历史记录
getTodayTask: qianzhuione + '/device/devicePDA/getTodayTask',
// 获取历史记录
getTaskRecord: qianzhuione + '/device/devicePDA/getTaskRecord',
// 获取巡检工单详情信息
getInspectionOrderInfo: qianzhuione + '/device/devicePDA/getInspectionOrderInfo',
// 提交巡检工单详情信息
updateInspectionRecord: qianzhuione + '/device/devicePDA/updateInspectionRecord',
},
// 报修
Repairbx: {
// 根据交货单号查询下面的产品编码
getInfoRepair: qianzhuione + '/device/devicePDA/queryEquipment/',
// 根据订单号和产品编码查询
addRepairRecord: qianzhuione + '/device/devicePDA/addRepairRecord',
// 备件list
getEquipmentList: qianzhuione + '/device/devicePDA/getEquipmentList',
},
// 维修
Repair: {

Loading…
Cancel
Save