优化维修页面配件收费问题

This commit is contained in:
BianLzhaoMin 2024-08-01 18:03:42 +08:00
parent ab24cae703
commit 44fc4eaa98
5 changed files with 1300 additions and 892 deletions

View File

@ -91,6 +91,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="domain.partType == 1"
:prop="'premiumList.' + index + '.partCost'" :prop="'premiumList.' + index + '.partCost'"
label="配件单价(元):" label="配件单价(元):"
:rules="{ :rules="{
@ -535,6 +536,12 @@ export default {
'this.dynamicValidateForm.premiumList1111)', 'this.dynamicValidateForm.premiumList1111)',
this.dynamicValidateForm.premiumList, this.dynamicValidateForm.premiumList,
) )
this.dynamicValidateForm.premiumList.forEach((e) => {
if (e.partType == 0) {
e.partCost = ''
}
})
let params = { let params = {
taskId: this.rowObj.taskId, taskId: this.rowObj.taskId,
maId: this.rowObj.maId, maId: this.rowObj.maId,
@ -570,6 +577,11 @@ export default {
submitTwo() { submitTwo() {
this.$refs['dynamicValidateFormTwo'].validate((valid) => { this.$refs['dynamicValidateFormTwo'].validate((valid) => {
if (valid) { if (valid) {
this.dynamicValidateFormTwo.premiumListTwo.forEach((e) => {
if (e.partType == 0) {
e.partCost = ''
}
})
// //
let params = { let params = {
taskId: this.rowObj.taskId, taskId: this.rowObj.taskId,

File diff suppressed because it is too large Load Diff

View File

@ -91,6 +91,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="domain.partType == 1"
:prop="'premiumList.' + index + '.partCost'" :prop="'premiumList.' + index + '.partCost'"
label="配件单价(元):" label="配件单价(元):"
:rules="{ :rules="{
@ -251,6 +252,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="domain.partTyp == 1"
:prop="'premiumListTwo.' + index + '.partCost'" :prop="'premiumListTwo.' + index + '.partCost'"
label="配件单价(元):" label="配件单价(元):"
:rules="{ :rules="{
@ -535,6 +537,12 @@ export default {
'this.dynamicValidateForm.premiumList1111)', 'this.dynamicValidateForm.premiumList1111)',
this.dynamicValidateForm.premiumList, this.dynamicValidateForm.premiumList,
) )
this.dynamicValidateForm.premiumList.forEach((e) => {
if (e.partType == 0) {
e.partCost = ''
}
})
let params = { let params = {
taskId: this.rowObj.taskId, taskId: this.rowObj.taskId,
maId: this.rowObj.maId, maId: this.rowObj.maId,
@ -570,6 +578,11 @@ export default {
submitTwo() { submitTwo() {
this.$refs['dynamicValidateFormTwo'].validate((valid) => { this.$refs['dynamicValidateFormTwo'].validate((valid) => {
if (valid) { if (valid) {
this.dynamicValidateFormTwo.premiumListTwo.forEach((e) => {
if (e.partType == 0) {
e.partCost = ''
}
})
// //
let params = { let params = {
taskId: this.rowObj.taskId, taskId: this.rowObj.taskId,

File diff suppressed because it is too large Load Diff

View File

@ -43,9 +43,9 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, // target: `https://z.csgmall.com.cn`,
target: `http://192.168.2.134:28080`, //超 // target: `http://192.168.2.134:28080`, //超
// target: `http://10.40.92.81:28080`, //韩/ // target: `http://10.40.92.81:28080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/ target: `http://192.168.2.82:28080`,//旭/
// target: `http://192.168.2.248:28080`, //帅 // target: `http://192.168.2.248:28080`, //帅
// target: `http://192.168.2.209:28080`, //福 // target: `http://192.168.2.209:28080`, //福