6.20宁夏生产问题修改

This commit is contained in:
FrancisHu 2024-06-20 09:13:53 +08:00
parent 2f63a7d96c
commit 20834903a3
8 changed files with 60 additions and 21 deletions

View File

@ -3,9 +3,9 @@ class HttpConfig {
baseUrl = "/api" baseUrl = "/api"
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
// baseUrl = "http://112.29.103.165:21624" baseUrl = "http://112.29.103.165:21624"
// baseUrl = "http://192.168.0.14:21624" // baseUrl = "http://192.168.0.14:21624"
baseUrl = "http://112.29.103.165:21626" // baseUrl = "http://112.29.103.165:21626"
// baseUrl = "http://172.20.10.3:8080" // baseUrl = "http://172.20.10.3:8080"
// baseUrl = "http://10.40.92.8:8080" // baseUrl = "http://10.40.92.8:8080"
// baseUrl = "http://10.40.92.52:28080" // baseUrl = "http://10.40.92.52:28080"

View File

@ -2,8 +2,8 @@
"name" : "智慧仓储", "name" : "智慧仓储",
"appid" : "__UNI__9D122E1", "appid" : "__UNI__9D122E1",
"description" : "", "description" : "",
"versionName" : "1.1.1", "versionName" : "1.1.2",
"versionCode" : 111, "versionCode" : 112,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -574,10 +574,6 @@ import { basePath } from '../../public'
.select-area{ .select-area{
width: 85%; width: 85%;
margin: 40rpx auto; margin: 40rpx auto;
.submit-btn{
background-color: #409EFF;
color: #fff;
}
} }
} }
</style> </style>

View File

@ -334,7 +334,8 @@ import { basePath } from '../../public'
this.examList = { this.examList = {
taskId: that.modalList.taskId, taskId: that.modalList.taskId,
taskStatus: that.modalList.taskStatus + 1, taskStatus: that.modalList.taskStatus + 1,
leaseApplyInfoList: that.modalList.leaseApplyInfoList leaseApplyInfoList: that.modalList.leaseApplyInfoList,
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
} }
} }
if (that.roles.includes('fgs') && that.modalList.taskStatus == 30) { if (that.roles.includes('fgs') && that.modalList.taskStatus == 30) {
@ -389,7 +390,8 @@ import { basePath } from '../../public'
this.examList = { this.examList = {
taskId: that.modalList.taskId, taskId: that.modalList.taskId,
taskStatus: that.modalList.taskStatus + 1, taskStatus: that.modalList.taskStatus + 1,
leaseApplyInfoList: that.modalList.leaseApplyInfoList leaseApplyInfoList: that.modalList.leaseApplyInfoList,
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
} }
if (that.roles.includes('fgs')) { if (that.roles.includes('fgs')) {
for (let k = 0; k < that.examList.leaseApplyInfoList.length; k++) { for (let k = 0; k < that.examList.leaseApplyInfoList.length; k++) {
@ -591,6 +593,7 @@ import { basePath } from '../../public'
}, */ }, */
toggleSubmit (list) { toggleSubmit (list) {
let that = this let that = this
console.log(list);
that.$api.fetchExam.subExam(list).then(res => { that.$api.fetchExam.subExam(list).then(res => {
console.log(res); console.log(res);
if (res.data.code == 200) { if (res.data.code == 200) {

View File

@ -63,6 +63,7 @@
</view> </view>
<view <view
@click="subForm" @click="subForm"
:disabled="btnDisabled"
style="border: 1px solid #EBEBEB;" style="border: 1px solid #EBEBEB;"
> >
维修完成 维修完成
@ -110,7 +111,8 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
id: '', id: '',
taskId: '', taskId: '',
maId: '', maId: '',
typeId: '' typeId: '',
btnDisabled: false
} }
}, },
methods: { methods: {
@ -130,6 +132,7 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
}, },
subForm () { subForm () {
let that = this let that = this
that.btnDisabled = true
this.submitForm = this.allForm this.submitForm = this.allForm
for (let i = 0; i < this.submitForm.length; i++) { for (let i = 0; i < this.submitForm.length; i++) {
this.submitForm[i].partId = this.submitForm[i].partId[0] this.submitForm[i].partId = this.submitForm[i].partId[0]
@ -153,13 +156,13 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.showLoading = false that.showLoading = false
uni.navigateBack({ that.btnDisabled = false
delta: 2 uni.navigateBack()
})
} }
}) })
} else { } else {
that.showLoading = false that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: res.data.msg title: res.data.msg
@ -167,6 +170,8 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form';
} }
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
that.showLoading = false
that.btnDisabled = false
}) })
}, },
handleTree (data, id, parentId, children) { handleTree (data, id, parentId, children) {

View File

@ -26,9 +26,10 @@
<uni-easyinput type="number" v-model="lowerIpt.waitCrashNum" placeholder="请输入数量"></uni-easyinput> <uni-easyinput type="number" v-model="lowerIpt.waitCrashNum" placeholder="请输入数量"></uni-easyinput>
</view> </view>
</view> </view>
<view class="sub-btn" @click="subForm"> <view class="sub-btn" @click="subForm" :disabled="btnDisabled">
确认 确认
</view> </view>
<u-loading-page :loading="showLoading" color="#000" loading-text="表单提交中,请稍后..."></u-loading-page>
</view> </view>
</template> </template>
@ -47,7 +48,9 @@
waitRepairNum: '', waitRepairNum: '',
waitCrashNum: '' waitCrashNum: ''
}, },
totalNum: 0 totalNum: 0,
showLoading: false,
btnDisabled: false
} }
}, },
methods: { methods: {
@ -63,7 +66,11 @@
// "createBy": "1" // "createBy": "1"
// } // }
let that = this let that = this
that.showLoading = true
that.btnDisabled = true
if (!this.lowerIpt.passedNum && !this.lowerIpt.waitRepairNum && !this.lowerIpt.waitCrashNum) { if (!this.lowerIpt.passedNum && !this.lowerIpt.waitRepairNum && !this.lowerIpt.waitCrashNum) {
that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请至少填写一个数据!' title: '请至少填写一个数据!'
@ -75,11 +82,15 @@
.lowerIpt.waitCrashNum) .lowerIpt.waitCrashNum)
console.log(that.totalNum); console.log(that.totalNum);
if (that.totalNum > that.upperInfo.num) { if (that.totalNum > that.upperInfo.num) {
that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '接收总量不能大于退库数量!' title: '接收总量不能大于退库数量!'
}) })
} else if (that.totalNum == 0) { } else if (that.totalNum == 0) {
that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请确保退料总量不为0' title: '请确保退料总量不为0'
@ -91,6 +102,8 @@
arr: this.handleSubmitData() arr: this.handleSubmitData()
}).then(res => { }).then(res => {
console.log("res===", res) console.log("res===", res)
that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '接收成功' title: '接收成功'

View File

@ -59,7 +59,12 @@
维修完成 维修完成
</view> </view>
</view> --> </view> -->
<button @click="subForm">维修完成</button> <button
@click="subForm"
:disabled="btnDisabled"
>
维修完成
</button>
</view> </view>
<u-loading-page :loading="showLoading" color="#000" loading-text="表单提交中,请稍后..."></u-loading-page> <u-loading-page :loading="showLoading" color="#000" loading-text="表单提交中,请稍后..."></u-loading-page>
</view> </view>
@ -96,7 +101,8 @@ import { basePath } from '../../public'
id: '', id: '',
taskId: '', taskId: '',
maId: '', maId: '',
typeId: '' typeId: '',
btnDisabled: false
} }
}, },
methods: { methods: {
@ -120,6 +126,8 @@ import { basePath } from '../../public'
}, */ }, */
subForm () { subForm () {
let that = this let that = this
that.btnDisabled = true
that.showLoading = true
this.totalSub.partStrList = JSON.stringify(this.returnForm) this.totalSub.partStrList = JSON.stringify(this.returnForm)
this.totalSub.id = this.id this.totalSub.id = this.id
this.totalSub.taskId = this.taskId this.totalSub.taskId = this.taskId
@ -129,7 +137,6 @@ import { basePath } from '../../public'
this.totalSub.userId = uni.getStorageSync('userInfo').userid this.totalSub.userId = uni.getStorageSync('userInfo').userid
this.totalSub.repairType = 2 this.totalSub.repairType = 2
console.log(this.totalSub); console.log(this.totalSub);
this.showLoading = true
that.$api.fix.submitFix(that.totalSub).then(res => { that.$api.fix.submitFix(that.totalSub).then(res => {
console.log(res); console.log(res);
if (res.data.code == 200) { if (res.data.code == 200) {
@ -138,6 +145,7 @@ import { basePath } from '../../public'
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.showLoading = false that.showLoading = false
that.btnDisabled = false
/* uni.switchTab({ /* uni.switchTab({
url: '/pages/workSpace/workSpace' url: '/pages/workSpace/workSpace'
}) */ }) */
@ -146,6 +154,7 @@ import { basePath } from '../../public'
}) })
} else { } else {
that.showLoading = false that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: res.data.msg title: res.data.msg
@ -153,6 +162,8 @@ import { basePath } from '../../public'
} }
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
that.showLoading = false
that.btnDisabled = false
}) })
}, },
handleTree (data, id, parentId, children) { handleTree (data, id, parentId, children) {

View File

@ -34,7 +34,12 @@
:del-icon="false" :del-icon="false"
></uni-file-picker> ></uni-file-picker>
</uni-forms-item> </uni-forms-item>
<button style="background-color: #3788FF; color: #fff;" @click="subForm">提交</button> <button
@click="subForm"
:disabled="btnDisabled"
>
提交
</button>
</uni-forms> </uni-forms>
</view> </view>
<u-loading-page :loading="showLoading" color="#000" loading-text="表单提交中,请稍后..."></u-loading-page> <u-loading-page :loading="showLoading" color="#000" loading-text="表单提交中,请稍后..."></u-loading-page>
@ -63,7 +68,8 @@ import { basePath, systemPath } from '../../public';
id: '', id: '',
taskId: '', taskId: '',
maId: '', maId: '',
typeId: '' typeId: '',
btnDisabled: false
} }
}, },
methods: { methods: {
@ -86,6 +92,7 @@ import { basePath, systemPath } from '../../public';
}, },
subForm () { subForm () {
let that = this let that = this
that.btnDisabled = true
this.crashForm.fileIds = this.crashForm.fileIds.join(',') this.crashForm.fileIds = this.crashForm.fileIds.join(',')
this.crashForm.id = this.id this.crashForm.id = this.id
this.crashForm.taskId = this.taskId this.crashForm.taskId = this.taskId
@ -104,6 +111,7 @@ import { basePath, systemPath } from '../../public';
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.showLoading = false that.showLoading = false
that.btnDisabled = false
/* uni.switchTab({ /* uni.switchTab({
url: '/pages/workSpace/workSpace' url: '/pages/workSpace/workSpace'
}) */ }) */
@ -112,6 +120,7 @@ import { basePath, systemPath } from '../../public';
}) })
} else { } else {
that.showLoading = false that.showLoading = false
that.btnDisabled = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: res.data.msg title: res.data.msg
@ -119,6 +128,8 @@ import { basePath, systemPath } from '../../public';
} }
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
that.showLoading = false
that.btnDisabled = false
}) })
} }
}, },