|
@@ -4,6 +4,7 @@
|
|
|
<a-col :md="48" :sm="48">
|
|
|
<span>
|
|
|
<a-button v-show="editor" :loading="confirmLoading" type="primary" @click="save()">保存</a-button>
|
|
|
+ <a-button style="margin-left: 8px" v-show="editor" :loading="confirmLoading" type="primary" @click="handleAdd()">新增</a-button>
|
|
|
<a-button style="margin-left: 8px" type="default" @click="handleCancel()">返回</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 8px"
|
|
@@ -112,14 +113,13 @@
|
|
|
<a-icon v-show="item.status === 1" type="check" style="color:#87d068;font-size: 26px;" />
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a-button v-if="editor" type="link" @click="handleDelete(item.sbId)">
|
|
|
- 删除
|
|
|
- </a-button>
|
|
|
<a-button v-if="editor" type="link" @click="handleRepair(item)">
|
|
|
报修
|
|
|
</a-button>
|
|
|
<a-button type="link" @click="uploadImg(item,i)">{{ item.images&&item.images.length?'查看图片':'上传图片' }}</a-button>
|
|
|
-
|
|
|
+ <a-button v-if="editor" type="link" @click="handleDelete(item.id)">
|
|
|
+ 删除
|
|
|
+ </a-button>
|
|
|
<a-modal v-model="uploadVisible" title="上传图片" :footer="null" @cancel="uploadVisible = false">
|
|
|
<a-upload
|
|
|
:disabled="!editor"
|
|
@@ -174,6 +174,7 @@
|
|
|
<pause-form ref="pauseModal" @ok="handleOk" />
|
|
|
<verify-form ref="verifyModal" @ok="handleOk" />
|
|
|
<base-form-repair ref="baseFormRepairModal" @ok="handleOk" />
|
|
|
+ <sb-info-select-modal ref="sbInfoSelectModal" type="checkbox" @selected="handleSbSelectd"/>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -182,6 +183,7 @@ import { fillGatherTask, getFillGatherTask, getFillUpdates, pauseFillGatherTask,
|
|
|
import DispatchForm from './DispatchForm'
|
|
|
import OvertimeForm from './OvertimeForm'
|
|
|
import BaseFormRepair from './BaseFormRepair'
|
|
|
+import SbInfoSelectModal from '@/views/fill/gather/modules/SbInfoSelectModal.vue'
|
|
|
|
|
|
import PauseForm from './PauseForm'
|
|
|
import VerifyForm from './VerifyForm'
|
|
@@ -196,6 +198,7 @@ export default {
|
|
|
VerifyForm,
|
|
|
DispatchForm,
|
|
|
BaseFormRepair,
|
|
|
+ SbInfoSelectModal,
|
|
|
OvertimeForm
|
|
|
},
|
|
|
data () {
|
|
@@ -230,6 +233,7 @@ export default {
|
|
|
typeMap: {},
|
|
|
status: null,
|
|
|
updatesInfo: [],
|
|
|
+ ids: [],
|
|
|
columns: [
|
|
|
{
|
|
|
title: '序号',
|
|
@@ -466,6 +470,22 @@ export default {
|
|
|
this.$message.info('操作成功!')
|
|
|
this.getInfo()
|
|
|
})
|
|
|
+ },
|
|
|
+ handleAdd () {
|
|
|
+ this.ids = this.ListForm.map(item => item.sbId)
|
|
|
+ this.$refs.sbInfoSelectModal.base({}, this.ids)
|
|
|
+ },
|
|
|
+ handleSbSelectd (keys, rows) {
|
|
|
+ const ids = keys.filter(item => !this.ids.includes(item))
|
|
|
+ console.log(ids)
|
|
|
+ updatetasks({
|
|
|
+ id: this.id,
|
|
|
+ sbIds: ids,
|
|
|
+ isAdd: 1
|
|
|
+ }).then(res => {
|
|
|
+ this.$message.info('操作成功!')
|
|
|
+ this.getInfo()
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|