Commit aededed5 authored by 李超鹏's avatar 李超鹏

type:update

scope:self
body:显示切换
parent 0019c1fa
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
return process.uniEnv.qn_base_url + 'mixing.png' return process.uniEnv.qn_base_url + 'mixing.png'
}, },
arrowText() { arrowText() {
return false ? '已选择' : '请选择' return this.dataValue && this.dataValue.length > 0 ? '已选择' : '请选择'
} }
}, },
watch: {}, watch: {},
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
} }
} }
} }
.location { .location {
background: #F4F5F7; background: #F4F5F7;
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
确定 确定
</u-button> </u-button>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -139,15 +140,6 @@ ...@@ -139,15 +140,6 @@
self.formatServiceMoreList(data) self.formatServiceMoreList(data)
} }
}); });
/*
// 测试数据
var item = {matName: '碳纤维',
matUnit: '米',
freeLength: 4,
unitAmt: '2',
useLength: 6}
this.list = [{...item}, {...item}, {...item}, {...item}]
*/
}, },
created() { created() {
}, },
...@@ -163,8 +155,6 @@ ...@@ -163,8 +155,6 @@
} }
self.formatServiceMoreList(res.data) self.formatServiceMoreList(res.data)
}) })
// let testData = [{"freeLength":30,"priceTypeName":"","priceType":"01","lastModifiedWhen":"2021-05-11 11:10:27","matNo":"MAT1594085500303","createdWhen":"2021-05-11 11:10:27","extraAmt":0,"matName":"φ32镀锌管","studErp":"","isDel":"N","orderNo":"D20210424296591GQF","createdByName":"李小平","matUnit":"米","useLength":0,"orderMaterialId":"32BDDH67P5BBJGBKQBVXYCoJAA","lastModifiedByName":"李小平","unitAmt":0,"otherExplain":"","matType":"01"},{"freeLength":1,"priceTypeName":"","priceType":"01","lastModifiedWhen":"2021-05-11 11:10:27","matNo":"MAT1594714122500","createdWhen":"2021-05-11 11:10:27","extraAmt":0,"matName":"无标准电表箱","studErp":"","isDel":"N","orderNo":"D20210424296591GQF","createdByName":"李小平","matUnit":"个","useLength":0,"orderMaterialId":"6GXHJEJIZ5FZ7oFESHB26EAYWY","lastModifiedByName":"李小平","unitAmt":0,"otherExplain":"","matType":"01"}]
// self.formatServiceMoreList(testData)
}, },
formatServiceMoreList(materialCraftsData){ formatServiceMoreList(materialCraftsData){
let self = this let self = this
...@@ -178,7 +168,7 @@ ...@@ -178,7 +168,7 @@
if (!item.useLength) { if (!item.useLength) {
item.useLength = item.temp item.useLength = item.temp
} }
}, },
handleFocus(item) { // 点击清空 handleFocus(item) { // 点击清空
item.temp = item.useLength; item.temp = item.useLength;
...@@ -202,6 +192,15 @@ ...@@ -202,6 +192,15 @@
this.other.splice(index, 1) this.other.splice(index, 1)
}, },
handleSure() { handleSure() {
this.other.forEach(item =>{
if(!item.otherExplain){
this.$refs.uToast.show({
title: '请输入其他项说明',
type: 'warning'
})
return
}
})
let pages = getCurrentPages(); let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面 let prevPage = pages[pages.length - 2]; //上一个页面
let data = {} let data = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment