优化测试问题

This commit is contained in:
BianLzhaoMin 2024-06-21 17:21:01 +08:00
parent 04346fe02f
commit 432a972005
4 changed files with 24 additions and 2 deletions

View File

@ -400,7 +400,9 @@ export default {
// this.isEdit = true // this.isEdit = true
// this.getTaskInfo() // this.getTaskInfo()
// } // }
},
created() {
if (this.isEdit) { if (this.isEdit) {
this.taskId = this.editTaskId this.taskId = this.editTaskId
this.getTaskInfo() this.getTaskInfo()
@ -559,6 +561,24 @@ export default {
if (this.equipmentList.length > 0) { if (this.equipmentList.length > 0) {
this.$refs['maForm'].validate((valid) => { this.$refs['maForm'].validate((valid) => {
if (valid) { if (valid) {
const productionTime =
this.queryParams.productionTime
?.split('-')
.join('') - 0
const purchaseTime =
this.maForm.purchaseTime?.split('-').join('') - 0
const arrivalTime =
this.maForm.arrivalTime?.split('-').join('') - 0
if (productionTime > purchaseTime) {
this.$message.error('出厂日期不可在采购日期之后')
return
}
if (productionTime > arrivalTime) {
this.$message.error('出厂日期不可在到货日期之后')
return
}
// console.log(this.maForm,'maForm') // console.log(this.maForm,'maForm')
// console.log(this.equipmentList,'equipmentList') // console.log(this.equipmentList,'equipmentList')
let isEmpty = true let isEmpty = true

View File

@ -257,6 +257,7 @@
v-model="scope.row.maCode" v-model="scope.row.maCode"
:disabled="scope.row.statusFlag == 0" :disabled="scope.row.statusFlag == 0"
οninput="value=value.replace(/[^0-9.]/g,'')" οninput="value=value.replace(/[^0-9.]/g,'')"
maxlength="24"
></el-input> ></el-input>
<span v-else>{{ scope.row.maCode }}</span> <span v-else>{{ scope.row.maCode }}</span>
</template> </template>

View File

@ -360,6 +360,7 @@
type="textarea" type="textarea"
:autosize="{ minRows: 4, maxRows: 6 }" :autosize="{ minRows: 4, maxRows: 6 }"
placeholder="请输入通知内容" placeholder="请输入通知内容"
maxlength="500"
style="width: 80%" style="width: 80%"
/> />
</el-form-item> </el-form-item>

View File

@ -44,10 +44,10 @@ module.exports = {
// target: `https://z.csgmall.com.cn`, // target: `https://z.csgmall.com.cn`,
// target: `http://10.40.92.60:28080`, //超 // target: `http://10.40.92.60:28080`, //超
target: `http://10.40.92.81:28080`, //韩/ // target: `http://10.40.92.81:28080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/ // target: `http://10.40.92.74:8080`,//旭/
// target: `http://10.40.92.140:28080`, //帅 // target: `http://10.40.92.140:28080`, //帅
// target: `http://10.40.92.253:28080`, //福 target: `http://10.40.92.253:28080`, //福
//******** 注意事项 ********* */ //******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target; //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;