Преглед изворни кода

批量提交-生成计划时间

lxf пре 1 година
родитељ
комит
d7c971cb99

+ 9 - 0
src/api/shengde/subsidiary/AddOrModifiedOrder/index.js

@@ -106,6 +106,15 @@ export function generatePlanTime(id) {
   })
 }
 
+//生成计划时间-批量提交
+export function generateBatchPlanTime(data) {
+  return request({
+    url: '/saas-production/saas/production/task/generateBatchPlanTime',
+    method: 'post',
+    data: data,
+  })
+}
+
 //判断文件夹是否存在文件
 export function judgeFile(data) {
   return request({

+ 12 - 1
src/views/shengde/subsidiary/order/management/index.vue

@@ -170,7 +170,15 @@
           <el-button type="text" @click="handleOpenUpload(scope.row.id)" v-if="scope.row.status === 10" v-db-click>上传设计稿</el-button>
           <el-button type="text" @click="handleChangeOrder(scope.row.id)" v-if="scope.row.status === 0" v-db-click>编辑</el-button>
           <el-button type="text" v-if="scope.row.status == '30'" @click="handleAfterSales(scope.row)" v-db-click>售后</el-button>
-          <el-button type="text" style="color: rgb(217, 0, 27)" @click="handleRemove(scope.row.id)" v-if="scope.row.status == 10" v-db-click>删除</el-button>
+          <!-- <el-button type="text" style="color: rgb(217, 0, 27)" @click="handleRemove(scope.row.id)" v-if="scope.row.status == 10" v-db-click>删除</el-button> -->
+          <el-button
+            type="text"
+            style="color: rgb(217, 0, 27)"
+            @click="handleRemove(scope.row.id)"
+            v-if="scope.row.dataResource === 0 && (scope.row.status == 0 || scope.row.status == 10)"
+            v-db-click
+            >删除</el-button
+          >
         </template>
       </el-table-column>
     </el-table>
@@ -500,6 +508,9 @@ export default {
       API.submissionBatch({}).then((res) => {
         this.submissionData = res.data.data
         this.loadingSubmission = false
+        if (res.data.data.idList && res.data.data.idList.length > 0) {
+          API.generateBatchPlanTime(res.data.data.idList).then(() => {})
+        }
       })
     },
     submissionHistory() {