4月26日提交

master
rosehan 2 years ago
parent d16fec3405
commit f4c1d8cfbd
  1. 15
      pages/traceability-product/machining/index.vue
  2. 1
      pages/traceability-product/machining/materialsList.vue

@ -20,8 +20,8 @@
</picker>
</uni-forms-item>
<uni-forms-item label="加工日期" name="processingTime">
<uni-datetime-picker :clear-icon="false" v-model="formData.processingTime"
:value="formData.processingTime" type="date" @maskClick="maskClick" />
<uni-datetime-picker :clear-icon="false" type="date" returnType="timestamp"
v-model="formData.processingTime" @change="changeLog($event)" />
</uni-forms-item>
<uni-forms-item label="加工项目" name="processingProjection" required>
<input v-model="formData.processingProjection" placeholder="请输入加工项目" />
@ -248,10 +248,18 @@
onLoad(options) {
if (options.params) {
this.formData = JSON.parse(decodeURIComponent(options.params));
console.log("回",this.formData)
this.CurrenWorkShop = this.formData.CurrenWorkShop
this.CurrenQualityInspection = this.formData.CurrenQualityInspection
this.CurrenQualityResult = this.formData.CurrenAuthenticationType
this.CurrenAuthenticationType = this.formData.CurrenAuthenticationType
if (this.formData.authenticationPic) {
this.imgList[0] = this.formData.authenticationPic
}
if (this.formData.qualityImage) {
this.imgList1[0] = this.formData.qualityImage
}
} else {
this.formData = {
id: undefined,
@ -314,8 +322,9 @@
},
//
maskClick(e) {
changeLog(e) {
this.formData.processingTime = e
console.log("变",this.formData.processingTime)
},
//

@ -71,6 +71,7 @@
onLoad: function(options) {
if (options.params) {
this.reviceData = JSON.parse(decodeURIComponent(options.params));
console.log("接",this.reviceData)
} else {
this.reviceData = null;
}

Loading…
Cancel
Save