|
@@ -41,14 +41,14 @@
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="实绩试验开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
|
<a-form-model-item label="实绩试验开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
|
prop="shijiStartTime">
|
|
prop="shijiStartTime">
|
|
- <a-time-picker placeholder="请选择实绩试验开始时间" v-model="model.shijiStartTime"
|
|
|
|
|
|
+ <a-time-picker placeholder="请选择实绩试验开始时间" v-model="model.shijiStartTime" :valueFormat="'HH:mm'"
|
|
:format="'HH:mm'" style="width: 100%" />
|
|
:format="'HH:mm'" style="width: 100%" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="实绩试验结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
|
<a-form-model-item label="实绩试验结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
|
prop="shijiEndTime">
|
|
prop="shijiEndTime">
|
|
- <a-time-picker placeholder="请选择实绩试验结束时间" v-model="model.shijiEndTime"
|
|
|
|
|
|
+ <a-time-picker placeholder="请选择实绩试验结束时间" v-model="model.shijiEndTime" :valueFormat="'HH:mm'"
|
|
:format="'HH:mm'" style="width: 100%" />
|
|
:format="'HH:mm'" style="width: 100%" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -134,18 +134,27 @@ export default {
|
|
},
|
|
},
|
|
edit(record) {
|
|
edit(record) {
|
|
this.model = Object.assign({}, record)
|
|
this.model = Object.assign({}, record)
|
|
- this.model.shijiStartTime=moment(this.model.shijiStartTime.getTime()).format("HH:mm")
|
|
|
|
- this.model.shijiEndTime=moment(this.model.shijiEndTime.getTime()).format("HH:mm")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
var select={id:record.woId}
|
|
var select={id:record.woId}
|
|
getAction('/itdmGongdanMaster/itdmGongdanMaster/queryById', select).then((res) => {
|
|
getAction('/itdmGongdanMaster/itdmGongdanMaster/queryById', select).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- console.log("xxxxxxxxxxxxxxxxxxx")
|
|
|
|
- console.log(res.result)
|
|
|
|
this.model.shijiShebeiId=res.result.shebeiId
|
|
this.model.shijiShebeiId=res.result.shebeiId
|
|
this.model.shijiShiiyanType=res.result.shiiyanType
|
|
this.model.shijiShiiyanType=res.result.shiiyanType
|
|
|
|
+ this.model.chuanganqi=res.result.chuanganqi
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ var selec1t={id:record.id}
|
|
|
|
+ getAction('/itdmGongdanDetail/itdmGongdanDetail/queryById', selec1t).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.model.shijiWorkDate=res.result.workDate
|
|
|
|
+ this.model.shijiStartTime=res.result.startTime
|
|
|
|
+ this.model.shijiEndTime=res.result.endTime
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -166,8 +175,6 @@ export default {
|
|
httpurl += this.url.edit
|
|
httpurl += this.url.edit
|
|
method = 'put'
|
|
method = 'put'
|
|
}
|
|
}
|
|
- this.model.shijiStartTime=moment(this.model.shijiStartTime).format("HH:mm")
|
|
|
|
- this.model.shijiEndTime=moment(this.model.shijiEndTime).format("HH:mm")
|
|
|
|
|
|
|
|
httpAction(httpurl, this.model, method).then((res) => {
|
|
httpAction(httpurl, this.model, method).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|