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

type:update

scope:self
body:显示切换
parent 0019c1fa
......@@ -41,7 +41,7 @@
return process.uniEnv.qn_base_url + 'mixing.png'
},
arrowText() {
return false ? '已选择' : '请选择'
return this.dataValue && this.dataValue.length > 0 ? '已选择' : '请选择'
}
},
watch: {},
......
......@@ -58,6 +58,7 @@
确定
</u-button>
</view>
<u-toast ref="uToast" />
</view>
</template>
......@@ -139,15 +140,6 @@
self.formatServiceMoreList(data)
}
});
/*
// 测试数据
var item = {matName: '碳纤维',
matUnit: '米',
freeLength: 4,
unitAmt: '2',
useLength: 6}
this.list = [{...item}, {...item}, {...item}, {...item}]
*/
},
created() {
},
......@@ -163,8 +155,6 @@
}
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){
let self = this
......@@ -202,6 +192,15 @@
this.other.splice(index, 1)
},
handleSure() {
this.other.forEach(item =>{
if(!item.otherExplain){
this.$refs.uToast.show({
title: '请输入其他项说明',
type: 'warning'
})
return
}
})
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
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