|
|
@@ -43,10 +43,10 @@
|
|
|
<input class="uni-input" v-model="outsourceForm.formedNumLast" type='number'></input>
|
|
|
</u-form-item>
|
|
|
|
|
|
- <u-form-item label="完成时间:" borderBottom prop="expectReceiveDate">
|
|
|
+ <u-form-item label="完成时间:" borderBottom prop="requireDeliveryTime">
|
|
|
|
|
|
- <picker mode="date" :value="outsourceForm.expectReceiveDate" @change="onDateChange">
|
|
|
- <view class="uni-input">{{ outsourceForm.expectReceiveDate || '选择日期' }}</view>
|
|
|
+ <picker mode="date" :value="outsourceForm.requireDeliveryTime" @change="onDateChange">
|
|
|
+ <view class="uni-input">{{ outsourceForm.requireDeliveryTime || '选择日期' }}</view>
|
|
|
</picker>
|
|
|
|
|
|
</u-form-item>
|
|
|
@@ -68,12 +68,12 @@
|
|
|
</u-button>
|
|
|
|
|
|
|
|
|
- <u-button type="success" size="small" class="u-reset-button" @click="outsourceOk">
|
|
|
+ <u-button type="success" size="small" class="u-reset-button" @click="outsourceOk(0)">
|
|
|
提交
|
|
|
</u-button>
|
|
|
|
|
|
|
|
|
- <u-button type="success" size="small" class="u-reset-button" @click="outsourceOk">
|
|
|
+ <u-button type="success" size="small" class="u-reset-button" @click="outsourceOk(1)">
|
|
|
提交并发布
|
|
|
</u-button>
|
|
|
|
|
|
@@ -215,7 +215,7 @@
|
|
|
|
|
|
|
|
|
created() {
|
|
|
- this.getTwoTree()
|
|
|
+ this.getTwoTree()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
@@ -260,8 +260,7 @@
|
|
|
|
|
|
this.outsourceForm = {
|
|
|
...res,
|
|
|
-
|
|
|
- expectReceiveDate: '2024-05-20'
|
|
|
+ requireDeliveryTime: '2024-05-20'
|
|
|
}
|
|
|
|
|
|
console.log(this.outsourceForm)
|
|
|
@@ -285,13 +284,13 @@
|
|
|
},
|
|
|
|
|
|
onDateChange(e) {
|
|
|
- this.$set(this.outsourceForm, 'expectReceiveDate', e.detail.value)
|
|
|
+ this.$set(this.outsourceForm, 'requireDeliveryTime', e.detail.value)
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
|
|
|
|
|
|
- outsourceOk() {
|
|
|
+ outsourceOk(isRelease) {
|
|
|
if (!this.outsourceForm.name) {
|
|
|
uni.showToast({
|
|
|
title: '请输入委外名称',
|
|
|
@@ -299,7 +298,7 @@
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
- if (!this.outsourceForm.expectReceiveDate) {
|
|
|
+ if (!this.outsourceForm.requireDeliveryTime) {
|
|
|
uni.showToast({
|
|
|
title: '请选择委外完成时间',
|
|
|
icon: 'none'
|
|
|
@@ -310,10 +309,12 @@
|
|
|
let param = {
|
|
|
...this.outsourceForm,
|
|
|
taskId: this.newTaskObj.currentTaskId,
|
|
|
- workOrderId: this.newTaskObj.workOrderId
|
|
|
+ workOrderId: this.newTaskObj.workOrderId,
|
|
|
+ isRelease: isRelease
|
|
|
}
|
|
|
applyoutsourceSave(param).then(res => {
|
|
|
console.log(res)
|
|
|
+ this.outCancel()
|
|
|
})
|
|
|
},
|
|
|
|