6.14重庆仓储bug修改

This commit is contained in:
FrancisHu 2024-06-14 10:22:42 +08:00
parent ffbbf4b5ed
commit c9ccc41247
14 changed files with 328 additions and 368 deletions

View File

@ -602,6 +602,14 @@ const backMaterialReceive = {
)
},
// fetchMaterialOutStore
async searchByCode (data = {}, header = {}){
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.searchByCode,
data,
header
)
},
}
const crashExam = {

View File

@ -5,23 +5,24 @@ class HttpConfig {
// #ifdef APP-PLUS
// baseUrl = "http://112.29.103.165:21624"
// baseUrl = "http://192.168.0.14:21624"
baseUrl = "http://192.168.0.14:18866"
// baseUrl = "http://192.168.0.14:18866"
// baseUrl = "http://112.29.103.165:21626"
// baseUrl = "http://172.20.10.3:8080"
// baseUrl = "http://10.40.92.9:8080"
// baseUrl = "http://10.40.92.52:28080"
// baseUrl = "http://10.40.92.78:28080"
baseUrl = "http://10.40.92.138:28080"
// baseUrl = "http://10.40.92.52:28080"
// baseUrl = "https://z.csgmall.com.cn/gl"
// #endif
// 基地址
authPath = `${this.baseUrl}/dev-api/auth`
/* authPath = `${this.baseUrl}/dev-api/auth`
systemPath = `${this.baseUrl}/dev-api/system`
basePath = `${this.baseUrl}/dev-api/base`
materialPath = `${this.baseUrl}/dev-api/material`
/* authPath = `${this.baseUrl}/auth`
materialPath = `${this.baseUrl}/dev-api/material` */
authPath = `${this.baseUrl}/auth`
systemPath = `${this.baseUrl}/system`
basePath = `${this.baseUrl}/base`
materialPath = `${this.baseUrl}/material` */
materialPath = `${this.baseUrl}/material`
// 短链
serviceUrl = {
login: {
@ -118,6 +119,7 @@ class HttpConfig {
seeBackMaterialDetail: '/backReceive/backReceiveRecord', // 查看退料明细
searchRfid: '/backReceive/rfidCodeQuery', // 查询rfid
subRfid: '/backReceive/setRfidCodeBack', // rfid接收
searchByCode: '/backReceive/getBackMachineApp', // 根据编码查询该工程下的设备
},
// 报废审核接口
crashExam: {

View File

@ -246,7 +246,7 @@
{
"path": "pages/testExam/testExam",
"style": {
"navigationBarTitleText": "试验检验审核"
"navigationBarTitleText": "维修审核"
}
},
@ -254,14 +254,14 @@
"path" : "pages/testExam/testExamDetails",
"style" :
{
"navigationBarTitleText": "试验检验审核明细"
"navigationBarTitleText": "维修审核明细"
}
},{
"path" : "pages/testExam/testExamList",
"style" :
{
"navigationBarTitleText": "试验检验审核详情"
"navigationBarTitleText": "维修审核详情"
}
},

View File

@ -308,7 +308,8 @@ export default {
manageType,
typeName,
typeCode,
num
num,
agreementId
} = this.infoList
const params = {
taskId,
@ -319,7 +320,8 @@ export default {
userId,
typeName,
typeCode,
num
num,
agreementId
}
const urlStr = QS.stringify(params)
console.log("urlSTR", urlStr)

View File

@ -18,7 +18,7 @@
</view>
<view>
<h4>规格型号</h4>
<span>{{ item.typeCode }}</span>
<span>{{ item.typeModelName }}</span>
</view>
<view>
<h4>设备编码</h4>
@ -26,7 +26,7 @@
</view>
<view>
<h4>设备状态</h4>
<span>{{ item.sdStatus }}</span>
<span>{{ item.maStatus }}</span>
</view>
<!-- <uni-data-checkbox v-model="item.selectStatus" :localdata="fixRange"></uni-data-checkbox> -->
<!-- <view>
@ -85,7 +85,9 @@
manageType:'',
createBy:'',
updatedSubList: '',
transCode: ''
transCode: '',
taskId: '',
agreementId: ''
}
},
methods: {
@ -94,8 +96,10 @@
that.infoList = []
console.log(that.transCode);
// maId
that.$api.backMaterialReceive.backReceiveCodeQuery({
maCode: that.transCode
that.$api.backMaterialReceive.searchByCode({
maCode: that.transCode,
typeId: this.typeId,
agreementId: this.agreementId
}).then(res => {
console.log(res);
if (res.data.data.length == 0) {
@ -232,6 +236,7 @@
this.manageType = params.manageType
this.createBy=params.userId
this.taskId = params.taskId
this.agreementId = params.agreementId
}
}
</script>

View File

@ -56,14 +56,14 @@
<uni-icons style="color: #fff;" type="auth"></uni-icons>
机具审核
</view>
<view
<!-- <view
style="background-color: #FCA30D;"
v-show="fetch.taskStatus == 37 && roles.includes('tsfgs') && fetch.status == 0"
@click="toggleOpenModal(fetch)"
>
<uni-icons style="color: #fff;" type="auth"></uni-icons>
调试审核
</view>
</view> -->
</view>
<view class="sticky-area">
<!-- <image src="/static/passed.png" v-show="Number(fetch.taskStatus) >= '38'" mode=""></image>
@ -242,7 +242,8 @@ import { basePath } from '../../public'
modalReject () {
let that = this
console.log(that.modalList);
that.$refs.popup1.open()
that.rejectExam(that.modalList.id)
// that.$refs.popup1.open()
},
confirmReject () {
let that = this
@ -263,12 +264,12 @@ import { basePath } from '../../public'
closePopup1 () {
this.$refs.popup1.close()
},
seeExam (id, directAuditRemark) {
seeExam (id) {
let that = this
//
that.$api.exitExam.subExitExam({
id,
directAuditRemark
id
// directAuditRemark
}).then(res => {
console.log(res);
if (res.data.code == 200) {
@ -295,12 +296,12 @@ import { basePath } from '../../public'
console.log(err);
})
},
rejectExam (id, directAuditRemark) {
rejectExam (id) {
let that = this
//
that.$api.exitExam.rejectExitExam({
id,
directAuditRemark
id
// directAuditRemark
}).then(res => {
console.log(res);
if (res.data.code == 200) {

View File

@ -220,7 +220,8 @@ import { basePath } from '../../public'
backPerson: '',
remark: ''
},
fetchedList: []
fetchedList: [],
phoneReg: /^(?:(?:\+|00)86)?1[3-9]\d{9}$/
}
},
methods: {
@ -248,50 +249,58 @@ import { basePath } from '../../public'
})
}
}).catch(err => {
console.log(err);
})
},
formSubmit () {
let that = this
that.$refs.exitForm.validate().then(formData => {
that.$refs.popup.close()
// idid
that.$api.exitMaterial.ifAgreement({
unitId: formData.unitId,
projectId: formData.lotId
}).then(res => {
console.log(res);
if (res.data.code == 200) {
if (res.data.data.agreementId != null) {
that.newAdd.agreementId = res.data.data.agreementId
that.newAdd.backPerson = formData.backPerson
that.newAdd.phone = formData.phone
that.newAdd.unitId = formData.unitId
that.newAdd.lotId = formData.lotId
that.newAdd.backTime = formData.exitTime
that.newAdd.remark = formData.remark
console.log(that.newAdd);
that.$api.exitMaterial.newExitList(that.newAdd).then(res => {
console.log(res);
if (res.data.code == 200) {
uni.showToast({
icon: 'none',
title: '新增申请成功!',
success: () => {
uni.redirectTo({
url: '/pages/exitMaterial/exitMaterial'
})
}
})
}
}).catch(err => {
console.log(err);
})
console.log(formData);
if (!that.phoneReg.test(formData.phone)) {
uni.showToast({
icon: 'none',
title: '请输入正确格式的手机号!'
})
} else {
that.$refs.popup.close()
// idid
that.$api.exitMaterial.ifAgreement({
unitId: formData.unitId,
projectId: formData.lotId
}).then(res => {
console.log(res);
if (res.data.code == 200) {
if (res.data.data.agreementId != null) {
that.newAdd.agreementId = res.data.data.agreementId
that.newAdd.backPerson = formData.backPerson
that.newAdd.phone = formData.phone
that.newAdd.unitId = formData.unitId
that.newAdd.lotId = formData.lotId
that.newAdd.backTime = formData.exitTime
that.newAdd.remark = formData.remark
console.log(that.newAdd);
that.$api.exitMaterial.newExitList(that.newAdd).then(res => {
console.log(res);
if (res.data.code == 200) {
uni.showToast({
icon: 'none',
title: '新增申请成功!',
success: () => {
uni.redirectTo({
url: '/pages/exitMaterial/exitMaterial'
})
}
})
}
}).catch(err => {
console.log(err);
})
}
}
}
}).catch(err => {
})
}).catch(err => {
console.log(err);
})
}
})
},
seeDetail (id, typeId) {

View File

@ -164,10 +164,10 @@ import { basePath } from '../../public';
console.log(err);
})
},
initFixList (taskId) {
initFixList () {
let that = this
that.$api.fix.fixDetail({
taskId
taskId: this.initTaskId
}).then(res => {
console.log(res);
if (res.data.code == 200) {
@ -202,7 +202,7 @@ import { basePath } from '../../public';
//
},
onShow() {
this.initFixList(this.initTaskId)
this.initFixList()
}
}
</script>

View File

@ -131,6 +131,7 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
subForm () {
let that = this
this.submitForm = this.allForm
console.log(this.submitForm);
for (let i = 0; i < this.submitForm.length; i++) {
this.submitForm[i].partId = this.submitForm[i].partId[0]
}
@ -153,16 +154,26 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
title: res.data.msg,
success: () => {
that.showLoading = false
uni.navigateBack({
delta: 2
})
uni.navigateBack()
}
})
} else {
that.showLoading = false
uni.showToast({
icon: 'none',
title: res.data.msg
title: res.data.msg,
success: () => {
that.allForm = [
{
repairNum: 1,
partType: 0,
partId: [],
partNum: '',
repairer: '',
repairContent: ''
}
]
}
})
}
}).catch(err => {

View File

@ -22,7 +22,11 @@
<span >{{ qrcode }}</span>
</view>
<uni-forms-item name="deviceCode" required label="设备编号">
<uni-easyinput v-model="qrFormData.deviceCode"></uni-easyinput>
<uni-easyinput
v-model="qrFormData.deviceCode"
maxlength="20"
>
</uni-easyinput>
</uni-forms-item>
<view class="bind" @click="toggleBind">绑定</view>
</uni-forms>
@ -108,11 +112,12 @@
},
toggleBind () {
let that = this
console.log(that.qrcode);
console.log(that.qrcode, uni.getStorageSync('userInfo').sysUser.userId);
that.$refs.qrForm.validate().then(formData => {
that.showLoading = true
console.log(formData);
console.log(formData, that.qrcode);
that.$api.qrcodeBinding.bindQrcode({
binder: uni.getStorageSync('userInfo').sysUser.userId,
typeId: formData.specVal,
maCode: formData.deviceCode,
qrCode: that.qrcode,

View File

@ -108,7 +108,7 @@
url: 'crashExam'
},
{
name: '试验检验审核',
name: '维修审核',
pic: '/static/testExam.png',
url: 'testExam'
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11487,44 +11487,46 @@ var render = function () {
],
1
),
_c(
"uni-view",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g("31-" + $30, "v-show"),
expression: "_$g((\"31-\"+$30),'v-show')",
},
],
staticStyle: { "background-color": "#FCA30D" },
attrs: { _i: "31-" + $30 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
},
},
},
[
_c("uni-icons", {
staticStyle: { color: "#fff" },
attrs: { _i: "32-" + $30 },
}),
_vm._v("调试审核"),
],
1
),
],
1
),
_c(
"uni-view",
{
staticClass: _vm._$g("33-" + $30, "sc"),
attrs: { _i: "33-" + $30 },
staticClass: _vm._$g("31-" + $30, "sc"),
attrs: { _i: "31-" + $30 },
},
[
_c(
"h4",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g("32-" + $30, "v-show"),
expression: "_$g((\"32-\"+$30),'v-show')",
},
],
attrs: { _i: "32-" + $30 },
},
[_vm._v("退料待审核")]
),
_c(
"h4",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g("33-" + $30, "v-show"),
expression: "_$g((\"33-\"+$30),'v-show')",
},
],
attrs: { _i: "33-" + $30 },
},
[_vm._v("退料已审核")]
),
_c(
"h4",
{
@ -11538,7 +11540,7 @@ var render = function () {
],
attrs: { _i: "34-" + $30 },
},
[_vm._v("退料待审核")]
[_vm._v("退料查中")]
),
_c(
"h4",
@ -11551,9 +11553,13 @@ var render = function () {
expression: "_$g((\"35-\"+$30),'v-show')",
},
],
staticStyle: {
border: "1px solid #EE603D",
color: "#EE603D",
},
attrs: { _i: "35-" + $30 },
},
[_vm._v("退料已审核")]
[_vm._v("退料审核驳回")]
),
_c(
"h4",
@ -11566,45 +11572,11 @@ var render = function () {
expression: "_$g((\"36-\"+$30),'v-show')",
},
],
attrs: { _i: "36-" + $30 },
},
[_vm._v("退料核查中")]
),
_c(
"h4",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g("37-" + $30, "v-show"),
expression: "_$g((\"37-\"+$30),'v-show')",
},
],
staticStyle: {
border: "1px solid #EE603D",
color: "#EE603D",
},
attrs: { _i: "37-" + $30 },
},
[_vm._v("退料审核驳回")]
),
_c(
"h4",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g("38-" + $30, "v-show"),
expression: "_$g((\"38-\"+$30),'v-show')",
},
],
staticStyle: {
border: "1px solid #27D870",
color: "#27D870",
},
attrs: { _i: "38-" + $30 },
attrs: { _i: "36-" + $30 },
},
[_vm._v("退料完成")]
),
@ -11617,20 +11589,20 @@ var render = function () {
}),
_c(
"uni-popup",
{ ref: "popup", attrs: { _i: 39 } },
{ ref: "popup", attrs: { _i: 37 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(40, "sc"), attrs: { _i: 40 } },
{ staticClass: _vm._$g(38, "sc"), attrs: { _i: 38 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(41, "sc"), attrs: { _i: 41 } },
{ staticClass: _vm._$g(39, "sc"), attrs: { _i: 39 } },
[
_c("h4", { attrs: { _i: 42 } }, [_vm._v("审批")]),
_c("h4", { attrs: { _i: 40 } }, [_vm._v("审批")]),
_c("uni-icons", {
staticStyle: { color: "#AAAAAA", "font-weight": "bold" },
attrs: { _i: 43 },
attrs: { _i: 41 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -11649,18 +11621,18 @@ var render = function () {
"font-weight": "normal",
"text-align": "center",
},
attrs: { _i: 44 },
attrs: { _i: 42 },
},
[_vm._v("是否通过审批?")]
),
_c(
"uni-view",
{ staticClass: _vm._$g(45, "sc"), attrs: { _i: 45 } },
{ staticClass: _vm._$g(43, "sc"), attrs: { _i: 43 } },
[
_c(
"uni-view",
{
attrs: { _i: 46 },
attrs: { _i: 44 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -11672,7 +11644,7 @@ var render = function () {
_c(
"uni-view",
{
attrs: { _i: 47 },
attrs: { _i: 45 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -11692,20 +11664,20 @@ var render = function () {
),
_c(
"uni-popup",
{ ref: "popup1", attrs: { _i: 48 } },
{ ref: "popup1", attrs: { _i: 46 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(49, "sc"), attrs: { _i: 49 } },
{ staticClass: _vm._$g(47, "sc"), attrs: { _i: 47 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(50, "sc"), attrs: { _i: 50 } },
{ staticClass: _vm._$g(48, "sc"), attrs: { _i: 48 } },
[
_c("h4", { attrs: { _i: 51 } }, [_vm._v("驳回原因")]),
_c("h4", { attrs: { _i: 49 } }, [_vm._v("驳回原因")]),
_c("uni-icons", {
staticStyle: { color: "#AAAAAA", "font-weight": "bold" },
attrs: { _i: 52 },
attrs: { _i: 50 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -11717,12 +11689,12 @@ var render = function () {
),
_c(
"uni-view",
{ staticClass: _vm._$g(53, "sc"), attrs: { _i: 53 } },
{ staticClass: _vm._$g(51, "sc"), attrs: { _i: 51 } },
[
_c("uni-easyinput", {
attrs: { _i: 54 },
attrs: { _i: 52 },
model: {
value: _vm._$g(54, "v-model"),
value: _vm._$g(52, "v-model"),
callback: function () {},
expression: "rejectReason",
},
@ -11730,8 +11702,8 @@ var render = function () {
_c(
"uni-view",
{
staticClass: _vm._$g(55, "sc"),
attrs: { _i: 55 },
staticClass: _vm._$g(53, "sc"),
attrs: { _i: 53 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)