You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3396 lines
115 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <div class="mod-config yzz">
  3. <el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
  4. <el-form :inline="true" label-position="top" style="margin-top: 0px">
  5. <el-form-item :label="'申请单号'">
  6. <el-input v-model="searchData.notifyNo" style="width: 120px"></el-input>
  7. </el-form-item>
  8. <el-form-item :label="'申请账号'">
  9. <el-input v-model="searchData.userName" style="width: 120px"></el-input>
  10. </el-form-item>
  11. <el-form-item label="状态" >
  12. <el-select v-model="searchData.status" placeholder="请选择" style="width: 120px">
  13. <el-option label="全部" value=""></el-option>
  14. <el-option label="已下达" value="已下达"></el-option>
  15. <el-option label="已关闭" value="已关闭"></el-option>
  16. </el-select>
  17. </el-form-item>
  18. <el-form-item :label="'申请单日期'">
  19. <el-date-picker
  20. style="width: 120px"
  21. v-model="searchData.startDate"
  22. type="date"
  23. value-format="yyyy-MM-dd"
  24. placeholder="选择日期">
  25. </el-date-picker>
  26. </el-form-item>
  27. <el-form-item style="margin-top: 23px;">
  28. <label style="margin-left: 0px;font-size: 19px">&#10142</label>
  29. </el-form-item>
  30. <el-form-item :label="' '">
  31. <el-date-picker
  32. style="width: 120px"
  33. v-model="searchData.endDate"
  34. type="date"
  35. value-format="yyyy-MM-dd"
  36. placeholder="选择日期">
  37. </el-date-picker>
  38. </el-form-item>
  39. </el-form>
  40. <el-form :inline="true" label-position="top" style="margin-top: 0px">
  41. <el-form-item label="是否领料" >
  42. <el-select v-model="searchData.issueFlag" placeholder="请选择" style="width: 120px">
  43. <el-option label="全部" value=""></el-option>
  44. <el-option label="Y" value="Y"></el-option>
  45. <el-option label="N" value="N"></el-option>
  46. </el-select>
  47. </el-form-item>
  48. <el-form-item label="领料结果" >
  49. <el-select v-model="searchData.issueResult" placeholder="请选择" style="width: 120px">
  50. <el-option label="全部" value=""></el-option>
  51. <el-option label="部分发料" value="部分发料"></el-option>
  52. <el-option label="全部发料" value="全部发料"></el-option>
  53. </el-select>
  54. </el-form-item>
  55. <el-form-item :label="' '">
  56. <el-button type="primary" @click="searchTable()">查询</el-button>
  57. <el-button type="primary" @click="createNotifyModal()">新增</el-button>
  58. <download-excel
  59. :fields="fields()"
  60. :data="exportData"
  61. type="xls"
  62. :name="exportName"
  63. :header="exportHeader"
  64. :footer="exportFooter"
  65. :fetch="createExportData"
  66. :before-generate="startDownload"
  67. :before-finish="finishDownload"
  68. worksheet="导出信息"
  69. class="el-button el-button--primary el-button--medium">
  70. {{ '导出' }}
  71. </download-excel>
  72. </el-form-item>
  73. </el-form>
  74. </el-form>
  75. <el-table
  76. :data="dataList"
  77. @row-click="changeData"
  78. :height="height"
  79. border
  80. highlight-current-row
  81. ref="mainTable"
  82. v-loading="dataListLoading"
  83. style="width: 100%; ">
  84. <el-table-column
  85. v-for="(item,index) in columnList1" :key="index"
  86. :sortable="item.columnSortable"
  87. :prop="item.columnProp"
  88. :header-align="item.headerAlign"
  89. :show-overflow-tooltip="item.showOverflowTooltip"
  90. :align="item.align"
  91. :fixed="item.fixed==''?false:item.fixed"
  92. :min-width="item.columnWidth"
  93. :label="item.columnLabel">
  94. <template slot-scope="scope">
  95. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  96. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  97. style="width: 100px; height: 80px"/></span>
  98. </template>
  99. </el-table-column>
  100. <el-table-column
  101. header-align="center"
  102. align="center"
  103. width="80"
  104. label="操作">
  105. <template slot-scope="scope">
  106. <a type="text" size="small" v-if="scope.row.status==='草稿' || scope.row.status==='编辑中'" @click="xiadaNotifyModel(scope.row)">下达</a>
  107. <a type="text" size="small" v-if="scope.row.status==='待出库'" @click="editNotifyMaterialFun(scope.row)">编辑</a>
  108. <a type="text" size="small" v-if="scope.row.status!=='已完成' && scope.row.status!=='已关闭' && scope.row.status!=='待出库'" @click="closeNotifyModel(scope.row)">关闭</a>
  109. <a type="text" size="small" v-if="scope.row.status==='草稿' " @click="deleteNotifyConfirm(scope.row)">删除</a>
  110. <!-- <a type="text" size="small" v-if="scope.row.status==='已关闭'" @click="openNotify(scope.row)">开启</a>-->
  111. </template>
  112. </el-table-column>
  113. </el-table>
  114. <el-pagination
  115. @size-change="sizeChangeHandle"
  116. @current-change="currentChangeHandle"
  117. :current-page="pageIndex"
  118. :page-sizes="[20, 50, 100, 1000]"
  119. :page-size="pageSize"
  120. :total="totalPage"
  121. layout="total, sizes, prev, pager, next, jumper">
  122. </el-pagination>
  123. <el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick">
  124. <el-tab-pane label="申请单明细" name="detail">
  125. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -10px;">
  126. <el-button
  127. @click="createOrderDetail()"
  128. type="primary"
  129. style="margin-left: 10px;margin-top: 0px"
  130. :disabled="(currentRow.status !== '草稿' && currentRow.status !== '编辑中')">
  131. {{'新增'}}
  132. </el-button>
  133. </el-form>
  134. <el-table
  135. :data="dataList2"
  136. :height="height"
  137. border
  138. v-loading="dataListLoading"
  139. style="width: 100%; ">
  140. <el-table-column
  141. header-align="center"
  142. align="center"
  143. width="80"
  144. label="操作">
  145. <template slot-scope="scope">
  146. <a
  147. type="text"
  148. size="small"
  149. @click="deleteNotifySOSPlus(scope.row)"
  150. :class="{ 'disabled-link': currentRow.status !== '草稿' && currentRow.status !== '编辑中' }">
  151. 删除
  152. </a>
  153. </template>
  154. </el-table-column>
  155. <el-table-column
  156. v-for="(item,index) in columnList2" :key="index"
  157. :sortable="item.columnSortable"
  158. :prop="item.columnProp"
  159. :header-align="item.headerAlign"
  160. :show-overflow-tooltip="item.showOverflowTooltip"
  161. :align="item.align"
  162. :fixed="item.fixed==''?false:item.fixed"
  163. :min-width="item.columnWidth"
  164. :label="item.columnLabel">
  165. <template slot-scope="scope">
  166. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  167. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  168. style="width: 100px; height: 80px"/></span>
  169. </template>
  170. </el-table-column>
  171. </el-table>
  172. </el-tab-pane>
  173. <el-tab-pane label="材料明细" name="sub">
  174. <el-table
  175. :data="dataList3"
  176. :height="height"
  177. border
  178. :row-class-name="tableRowClassName"
  179. v-loading="dataListLoading"
  180. style="width: 100%; ">
  181. <el-table-column
  182. v-for="(item,index) in columnList3" :key="index"
  183. :sortable="item.columnSortable"
  184. :prop="item.columnProp"
  185. :header-align="item.headerAlign"
  186. :show-overflow-tooltip="item.showOverflowTooltip"
  187. :align="item.align"
  188. :fixed="item.fixed==''?false:item.fixed"
  189. :min-width="item.columnWidth"
  190. :label="item.columnLabel">
  191. <template slot-scope="scope">
  192. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  193. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  194. style="width: 100px; height: 80px"/></span>
  195. </template>
  196. </el-table-column>
  197. </el-table>
  198. </el-tab-pane>
  199. <el-tab-pane label="材料汇总" name="sum">
  200. <el-table
  201. :data="dataList4"
  202. :height="height"
  203. border
  204. v-loading="dataListLoading"
  205. style="width: 100%; ">
  206. <!-- <el-table-column-->
  207. <!-- header-align="center"-->
  208. <!-- align="center"-->
  209. <!-- width="80"-->
  210. <!-- fixed="left"-->
  211. <!-- label="操作">-->
  212. <!-- <template slot-scope="scope">-->
  213. <!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>-->
  214. <!-- </template>-->
  215. <!-- </el-table-column>-->
  216. <el-table-column
  217. v-for="(item,index) in columnList4" :key="index"
  218. :sortable="item.columnSortable"
  219. :prop="item.columnProp"
  220. :header-align="item.headerAlign"
  221. :show-overflow-tooltip="item.showOverflowTooltip"
  222. :align="item.align"
  223. :fixed="item.fixed==''?false:item.fixed"
  224. :min-width="item.columnWidth"
  225. :label="item.columnLabel">
  226. <template slot-scope="scope">
  227. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  228. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  229. style="width: 100px; height: 80px"/></span>
  230. </template>
  231. </el-table-column>
  232. </el-table>
  233. </el-tab-pane>
  234. <el-tab-pane label="删除记录" name="change">
  235. <el-table
  236. :data="dataList5"
  237. :height="height"
  238. border
  239. v-loading="dataListLoading"
  240. style="width: 100%; ">
  241. <!-- <el-table-column-->
  242. <!-- header-align="center"-->
  243. <!-- align="center"-->
  244. <!-- width="80"-->
  245. <!-- fixed="left"-->
  246. <!-- label="操作">-->
  247. <!-- <template slot-scope="scope">-->
  248. <!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>-->
  249. <!-- </template>-->
  250. <!-- </el-table-column>-->
  251. <el-table-column
  252. v-for="(item,index) in columnList5" :key="index"
  253. :sortable="item.columnSortable"
  254. :prop="item.columnProp"
  255. :header-align="item.headerAlign"
  256. :show-overflow-tooltip="item.showOverflowTooltip"
  257. :align="item.align"
  258. :fixed="item.fixed==''?false:item.fixed"
  259. :min-width="item.columnWidth"
  260. :label="item.columnLabel">
  261. <template slot-scope="scope">
  262. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  263. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  264. style="width: 100px; height: 80px"/></span>
  265. </template>
  266. </el-table-column>
  267. </el-table>
  268. </el-tab-pane>
  269. <el-tab-pane label="关闭记录" name="close">
  270. <el-table
  271. :data="dataList6"
  272. :height="height"
  273. border
  274. v-loading="dataListLoading"
  275. style="width: 100%; ">
  276. <!-- <el-table-column-->
  277. <!-- header-align="center"-->
  278. <!-- align="center"-->
  279. <!-- width="80"-->
  280. <!-- fixed="left"-->
  281. <!-- label="操作">-->
  282. <!-- <template slot-scope="scope">-->
  283. <!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>-->
  284. <!-- </template>-->
  285. <!-- </el-table-column>-->
  286. <el-table-column
  287. v-for="(item,index) in columnList6" :key="index"
  288. :sortable="item.columnSortable"
  289. :prop="item.columnProp"
  290. :header-align="item.headerAlign"
  291. :show-overflow-tooltip="item.showOverflowTooltip"
  292. :align="item.align"
  293. :fixed="item.fixed==''?false:item.fixed"
  294. :min-width="item.columnWidth"
  295. :label="item.columnLabel">
  296. <template slot-scope="scope">
  297. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  298. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  299. style="width: 100px; height: 80px"/></span>
  300. </template>
  301. </el-table-column>
  302. </el-table>
  303. </el-tab-pane>
  304. </el-tabs>
  305. <el-dialog title="关闭原因" :close-on-click-modal="false" v-drag :visible.sync="closeModalFlag" width="450px">
  306. <el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
  307. <el-row :gutter="20">
  308. <el-col :span="24">
  309. <el-form-item >
  310. <el-input
  311. type="textarea"
  312. v-model="closeData.closeRemark "
  313. :rows="3"
  314. resize='none'
  315. maxlength="200"
  316. show-word-limit
  317. style="height: 60px" >
  318. </el-input>
  319. </el-form-item>
  320. </el-col>
  321. </el-row>
  322. </el-form>
  323. <el-footer style="height:40px;margin-top: 60px;text-align:center">
  324. <el-button type="primary" @click="closeNotify()">保存</el-button>
  325. <el-button type="primary" @click="closeModalFlag=false">关闭</el-button>
  326. </el-footer>
  327. </el-dialog>
  328. <el-dialog title="新建领料申请单" :close-on-click-modal="false" v-drag :visible.sync="createNotifyFlag" width="300px">
  329. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  330. <el-row :gutter="20">
  331. <el-col :span="24">
  332. <el-form-item :label="'工厂_BU'" style="width: 97%" >
  333. <el-select v-model="notifyData.bu" placeholder="请选择" style="width: 100%">
  334. <el-option
  335. v-for = "i in userBuList"
  336. :key = "i.buNo"
  337. :label = "i.sitename"
  338. :value = "i.buNo">
  339. <span style="float: left;width: 100px">{{ i.sitename }}</span>
  340. <span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">
  341. {{ i.buDesc }}
  342. </span>
  343. </el-option>
  344. </el-select>
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. <el-row :gutter="20">
  349. <el-col :span="24">
  350. <el-form-item :label="'备注'" style="width: 97%">
  351. <el-input v-model="notifyData.remark" style="width: 100%"></el-input>
  352. </el-form-item>
  353. </el-col>
  354. </el-row>
  355. </el-form>
  356. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  357. <el-button type="primary" @click="saveNotify()">保存</el-button>
  358. <el-button type="primary" @click="createNotifyFlag=false">关闭</el-button>
  359. </el-footer>
  360. </el-dialog>
  361. <!-- 选择物料模态框 -->
  362. <el-dialog width="1000px"
  363. title="选择物料"
  364. :close-on-click-modal="false"
  365. :visible.sync="choosePartModalFlag">
  366. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  367. <el-row :gutter="20">
  368. <el-col :span="6">
  369. <el-form-item :label="'物料编码'" >
  370. <el-input v-model="choosePartData.partNo"></el-input>
  371. </el-form-item>
  372. </el-col>
  373. <el-col :span="6">
  374. <el-form-item :label="'物料名称'" >
  375. <el-input v-model="choosePartData.partDesc"></el-input>
  376. </el-form-item>
  377. </el-col>
  378. <el-col :span="6">
  379. <el-form-item :label="'规格型号'" >
  380. <el-input v-model="choosePartData.spec"></el-input>
  381. </el-form-item>
  382. </el-col>
  383. <el-col :span="6">
  384. <el-form-item >
  385. <el-button type="primary" @click="searchPartModel" style="margin-top: 5px" class="">查询</el-button>
  386. </el-form-item>
  387. </el-col>
  388. </el-row>
  389. </el-form>
  390. <el-table
  391. :height="400"
  392. :data="choosePartList"
  393. border
  394. style="width: 100%;">
  395. <el-table-column
  396. prop="partNo"
  397. header-align="center"
  398. align="left"
  399. min-width="80"
  400. label="物料编码">
  401. </el-table-column>
  402. <el-table-column
  403. prop="partDesc"
  404. header-align="center"
  405. align="left"
  406. min-width="120"
  407. label="物料描述">
  408. </el-table-column>
  409. <el-table-column
  410. prop="spec"
  411. header-align="center"
  412. align="left"
  413. min-width="120"
  414. label="规格型号">
  415. </el-table-column>
  416. <el-table-column
  417. prop="sku"
  418. header-align="center"
  419. align="left"
  420. min-width="80"
  421. label="SKU">
  422. </el-table-column>
  423. <el-table-column
  424. prop="umid"
  425. header-align="center"
  426. align="left"
  427. min-width="60"
  428. label="计量单位">
  429. </el-table-column>
  430. <el-table-column
  431. fixed="left"
  432. header-align="center"
  433. align="center"
  434. width="60"
  435. label="操作">
  436. <template slot-scope="scope">
  437. <a type="text" size="small" @click="choosePart(scope.row)">选择</a>
  438. </template>
  439. </el-table-column>
  440. </el-table>
  441. <el-pagination
  442. @size-change="pp_sizeChangeHandle"
  443. @current-change="pp_currentChangeHandle"
  444. :current-page="pp_pageIndex"
  445. :page-sizes="[20, 50, 100, 1000]"
  446. :page-size="pp_pageSize"
  447. :total="pp_totalPage"
  448. layout="total, sizes, prev, pager, next, jumper">
  449. </el-pagination>
  450. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  451. <el-button type="primary" @click="choosePartModalFlag=false">关闭</el-button>
  452. </el-footer>
  453. </el-dialog>
  454. <el-dialog title="选择派工单" :close-on-click-modal="false" v-drag :visible.sync="chooseSOSModalFlag" width="1000px">
  455. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  456. <el-row :gutter="20">
  457. <el-col :span="4">
  458. <el-form-item :label="'生产订单'" >
  459. <el-input v-model="chooseSOSData.orderno" ></el-input>
  460. </el-form-item>
  461. </el-col>
  462. <el-col :span="4">
  463. <el-form-item :label="'派工单号'" >
  464. <el-input v-model="chooseSOSData.seqno" ></el-input>
  465. </el-form-item>
  466. </el-col>
  467. <el-col :span="4">
  468. <el-form-item :label="'机台'" >
  469. <el-input v-model="chooseSOSData.sResourceid" ></el-input>
  470. </el-form-item>
  471. </el-col>
  472. <el-col :span="4">
  473. <el-form-item :label="'派工日期'" >
  474. <el-date-picker
  475. style="width: 100%"
  476. v-model="chooseSOSData.startDate"
  477. type="date"
  478. value-format="yyyy-MM-dd"
  479. placeholder="选择日期">
  480. </el-date-picker>
  481. </el-form-item>
  482. </el-col>
  483. <el-col :span="4">
  484. <el-form-item :label="'到'" >
  485. <el-date-picker
  486. style="width: 100%"
  487. v-model="chooseSOSData.endDate"
  488. type="date"
  489. value-format="yyyy-MM-dd"
  490. placeholder="选择日期">
  491. </el-date-picker>
  492. </el-form-item>
  493. </el-col>
  494. </el-row>
  495. <el-row :gutter="20">
  496. <el-col :span="6">
  497. <el-form-item >
  498. <el-button type="primary" @click="searchSOSRouting()" style="margin-top: 5px" class="">查询</el-button>
  499. </el-form-item>
  500. </el-col>
  501. </el-row>
  502. </el-form>
  503. <el-table
  504. :height="400"
  505. :data="chooseSOSList"
  506. border
  507. style="width: 100%;">
  508. <el-table-column
  509. v-for="(item,index) in chooseSOSColumnList" :key="index"
  510. :sortable="item.columnSortable"
  511. :prop="item.columnProp"
  512. :header-align="item.headerAlign"
  513. :show-overflow-tooltip="item.showOverflowTooltip"
  514. :align="item.align"
  515. :fixed="item.fixed==''?false:item.fixed"
  516. :min-width="item.columnWidth"
  517. :label="item.columnLabel">
  518. <template slot-scope="scope">
  519. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  520. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  521. </template>
  522. </el-table-column>
  523. <el-table-column
  524. fixed="left"
  525. header-align="center"
  526. align="center"
  527. width="60"
  528. label="操作">
  529. <template slot-scope="scope">
  530. <a type="text" size="small" @click="chooseSOS(scope.row)">选择</a>
  531. </template>
  532. </el-table-column>
  533. </el-table>
  534. <el-pagination
  535. @size-change="ss_sizeChangeHandle"
  536. @current-change="ss_currentChangeHandle"
  537. :current-page="ss_pageIndex"
  538. :page-sizes="[20, 50, 100, 1000]"
  539. :page-size="ss_pageSize"
  540. :total="ss_totalPage"
  541. layout="total, sizes, prev, pager, next, jumper">
  542. </el-pagination>
  543. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  544. <el-button type="primary" @click="chooseSOSModalFlag = false">关闭</el-button>
  545. </el-footer>
  546. </el-dialog>
  547. <el-dialog title="选择工单" :close-on-click-modal="false" v-drag :visible.sync="chooseOrderModalFlag" width="1000px">
  548. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  549. <el-row :gutter="20">
  550. <el-col :span="6">
  551. <el-form-item :label="'生产订单'" >
  552. <el-input v-model="chooseOrderData.orderNo"></el-input>
  553. </el-form-item>
  554. </el-col>
  555. <el-col :span="6">
  556. <el-form-item :label="'工单状态'" >
  557. <el-select multiple collapse-tags v-model="chooseOrderData.statusList" style="width: 220px">
  558. <el-option label="全部" value=""></el-option>
  559. <el-option label="已停工" value="已停工"></el-option>
  560. <el-option label="已开工" value="已开工"></el-option>
  561. <el-option label="已取消" value="已取消"></el-option>
  562. <el-option label="已计划" value="已计划"></el-option>
  563. <el-option label="已排产" value="已排产"></el-option>
  564. <el-option label="已下达" value="已下达"></el-option>
  565. <el-option label="已关闭" value="已关闭"></el-option>
  566. </el-select>
  567. </el-form-item>
  568. </el-col>
  569. <el-col :span="6">
  570. <el-form-item :label="'开始日期'" >
  571. <el-date-picker
  572. style="width: 100%"
  573. v-model="chooseOrderData.date3"
  574. type="date"
  575. value-format="yyyy-MM-dd"
  576. placeholder="选择日期">
  577. </el-date-picker>
  578. </el-form-item>
  579. </el-col>
  580. <el-col :span="6">
  581. <el-form-item :label="'结束日期'" >
  582. <el-date-picker
  583. style="width: 100%"
  584. v-model="chooseOrderData.date4"
  585. type="date"
  586. value-format="yyyy-MM-dd"
  587. placeholder="选择日期">
  588. </el-date-picker>
  589. </el-form-item>
  590. </el-col>
  591. </el-row>
  592. <el-row :gutter="20">
  593. <el-col :span="6">
  594. <el-form-item >
  595. <el-button type="primary" @click="searchOrder()" style="margin-top: 5px" class="">查询</el-button>
  596. </el-form-item>
  597. </el-col>
  598. </el-row>
  599. </el-form>
  600. <el-table
  601. :height="400"
  602. :data="chooseOrderList"
  603. border
  604. style="width: 100%;">
  605. <el-table-column
  606. v-for="(item,index) in chooseOrderColumnList" :key="index"
  607. :sortable="item.columnSortable"
  608. :prop="item.columnProp"
  609. :header-align="item.headerAlign"
  610. :show-overflow-tooltip="item.showOverflowTooltip"
  611. :align="item.align"
  612. :fixed="item.fixed==''?false:item.fixed"
  613. :min-width="item.columnWidth"
  614. :label="item.columnLabel">
  615. <template slot-scope="scope">
  616. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  617. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  618. </template>
  619. </el-table-column>
  620. <el-table-column
  621. fixed="left"
  622. header-align="center"
  623. align="center"
  624. width="60"
  625. label="操作">
  626. <template slot-scope="scope">
  627. <a type="text" size="small" @click="chooseOrder(scope.row)">选择</a>
  628. </template>
  629. </el-table-column>
  630. </el-table>
  631. <el-pagination
  632. @size-change="co_sizeChangeHandle"
  633. @current-change="co_currentChangeHandle"
  634. :current-page="co_pageIndex"
  635. :page-sizes="[20, 50, 100, 1000]"
  636. :page-size="co_pageSize"
  637. :total="co_totalPage"
  638. layout="total, sizes, prev, pager, next, jumper">
  639. </el-pagination>
  640. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  641. <el-button type="primary" @click="chooseOrderModalFlag = false">关闭</el-button>
  642. </el-footer>
  643. </el-dialog>
  644. <el-dialog title="选择工序" :close-on-click-modal="false" v-drag :visible.sync="chooseOperationModalFlag" width="800px">
  645. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  646. <el-row :gutter="20">
  647. <el-col :span="6">
  648. <el-form-item :label="'工序名称'" >
  649. <el-input v-model="chooseOperationData.itemDesc"></el-input>
  650. </el-form-item>
  651. </el-col>
  652. <el-col :span="6">
  653. <el-form-item >
  654. <el-button type="primary" @click="searchOperation()" style="margin-top: 5px" class="">查询</el-button>
  655. </el-form-item>
  656. </el-col>
  657. </el-row>
  658. </el-form>
  659. <el-table
  660. :height="400"
  661. :data="chooseOperationList"
  662. border
  663. style="width: 100%;">
  664. <el-table-column
  665. v-for="(item,index) in chooseOperationColumnList" :key="index"
  666. :sortable="item.columnSortable"
  667. :prop="item.columnProp"
  668. :header-align="item.headerAlign"
  669. :show-overflow-tooltip="item.showOverflowTooltip"
  670. :align="item.align"
  671. :fixed="item.fixed==''?false:item.fixed"
  672. :min-width="item.columnWidth"
  673. :label="item.columnLabel">
  674. <template slot-scope="scope">
  675. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  676. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  677. </template>
  678. </el-table-column>
  679. <el-table-column
  680. fixed="left"
  681. header-align="center"
  682. align="center"
  683. width="60"
  684. label="操作">
  685. <template slot-scope="scope">
  686. <a type="text" size="small" @click="chooseOperation(scope.row)">选择</a>
  687. </template>
  688. </el-table-column>
  689. </el-table>
  690. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  691. <el-button type="primary" @click="chooseOperationModalFlag = false">关闭</el-button>
  692. </el-footer>
  693. </el-dialog>
  694. <el-dialog title="选择机台" :close-on-click-modal="false" v-drag :visible.sync="chooseResourceModalFlag" width="800px">
  695. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  696. <el-row :gutter="20">
  697. <el-col :span="6">
  698. <el-form-item :label="'机台编号'" >
  699. <el-input v-model="chooseResourceData.resourceId"></el-input>
  700. </el-form-item>
  701. </el-col>
  702. <el-col :span="6">
  703. <el-form-item :label="'机台描述'" >
  704. <el-input v-model="chooseResourceData.resourceDesc"></el-input>
  705. </el-form-item>
  706. </el-col>
  707. <el-col :span="6">
  708. <el-form-item >
  709. <el-button type="primary" @click="searchResource()" style="margin-top: 5px" class="">查询</el-button>
  710. </el-form-item>
  711. </el-col>
  712. </el-row>
  713. </el-form>
  714. <el-table
  715. :height="400"
  716. :data="chooseResourceList"
  717. border
  718. style="width: 100%;">
  719. <el-table-column
  720. v-for="(item,index) in chooseResourceColumnList" :key="index"
  721. :sortable="item.columnSortable"
  722. :prop="item.columnProp"
  723. :header-align="item.headerAlign"
  724. :show-overflow-tooltip="item.showOverflowTooltip"
  725. :align="item.align"
  726. :fixed="item.fixed==''?false:item.fixed"
  727. :min-width="item.columnWidth"
  728. :label="item.columnLabel">
  729. <template slot-scope="scope">
  730. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  731. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  732. </template>
  733. </el-table-column>
  734. <el-table-column
  735. fixed="left"
  736. header-align="center"
  737. align="center"
  738. width="60"
  739. label="操作">
  740. <template slot-scope="scope">
  741. <a type="text" size="small" @click="chooseResource(scope.row)">选择</a>
  742. </template>
  743. </el-table-column>
  744. </el-table>
  745. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  746. <el-button type="primary" @click="chooseResourceModalFlag = false">关闭</el-button>
  747. </el-footer>
  748. </el-dialog>
  749. <el-dialog title="申请单明细" :close-on-click-modal="false" v-drag :visible.sync="saveOrderDetailFlag" width="750px">
  750. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  751. <!-- BOM物料和非BOM物料选择 -->
  752. <el-row :gutter="20" style="margin-bottom: 15px;">
  753. <el-col :span="24">
  754. <el-form-item :label="'物料类型'" style="display: none;">
  755. <el-radio-group v-model="orderDetailData.materialType" @change="onMaterialTypeChange">
  756. <el-radio label="BOM物料">BOM物料</el-radio>
  757. <el-radio label="非BOM物料">非BOM物料</el-radio>
  758. </el-radio-group>
  759. </el-form-item>
  760. </el-col>
  761. </el-row>
  762. <el-row :gutter="20">
  763. <el-col :span="6">
  764. <el-form-item>
  765. <template slot="label">
  766. <span v-if="orderDetailData.materialType === '非BOM物料'" slot="label">生产订单</span>
  767. <span v-else style="cursor: pointer" slot="label" @click="openChooseOrderModal"><a>生产订单</a></span>
  768. </template>
  769. <el-input v-model="orderDetailData.orderNo" disabled placeholder="请选择生产订单"></el-input>
  770. </el-form-item>
  771. </el-col>
  772. <el-col :span="6">
  773. <el-form-item>
  774. <template slot="label">
  775. <span v-if="orderDetailData.materialType === '非BOM物料'" slot="label">派工单号</span>
  776. <span v-else style="cursor: pointer" slot="label" @click="openChooseSOSModal"><a>派工单号</a></span>
  777. </template>
  778. <el-input v-model="orderDetailData.seqNo" disabled></el-input>
  779. </el-form-item>
  780. </el-col>
  781. <el-col :span="6">
  782. <el-form-item>
  783. <template slot="label">
  784. <span v-if="orderDetailData.orderNo && !orderDetailData.seqNo" style="cursor: pointer" slot="label" @click="openChooseOperationModal"><a>工序名称</a></span>
  785. <span v-else slot="label">工序名称</span>
  786. </template>
  787. <el-input v-model="orderDetailData.itemDesc" disabled placeholder="请选择工序"></el-input>
  788. </el-form-item>
  789. </el-col>
  790. <el-col :span="6">
  791. <el-form-item>
  792. <template slot="label">
  793. <span v-if="orderDetailData.orderNo && !orderDetailData.seqNo" style="cursor: pointer" slot="label" @click="openChooseResourceModal"><a>机台</a></span>
  794. <span v-else slot="label">机台</span>
  795. </template>
  796. <el-input v-model="orderDetailData.resourceDesc" disabled placeholder="请选择机台"></el-input>
  797. </el-form-item>
  798. </el-col>
  799. </el-row>
  800. <el-row :gutter="20">
  801. <el-col :span="6">
  802. <el-form-item>
  803. <template slot="label">
  804. <span v-if="orderDetailData.materialType === 'BOM物料'" slot="label">物料编码</span>
  805. <span v-else style="cursor: pointer" slot="label" @click="openChoosePartModal"><a>物料编码</a></span>
  806. </template>
  807. <el-input v-model="orderDetailData.partNo" disabled></el-input>
  808. </el-form-item>
  809. </el-col>
  810. <el-col :span="18">
  811. <el-form-item :label="'物料描述'" style="display: block">
  812. <el-input v-model="orderDetailData.partDesc" disabled></el-input>
  813. </el-form-item>
  814. </el-col>
  815. </el-row>
  816. <el-row :gutter="20">
  817. <el-col :span="6">
  818. <el-form-item :label="'工单/派工数量'">
  819. <el-input v-model="orderDetailData.qtyRequired" disabled style="text-align: right"
  820. class="text-right"></el-input>
  821. </el-form-item>
  822. </el-col>
  823. <!-- <el-col :span="6">
  824. <el-form-item :label="'已申请领料总和'">
  825. <el-input v-model="orderDetailData.alreadyApplyTotal" disabled style="text-align: right"
  826. class="text-right"></el-input>
  827. </el-form-item>
  828. </el-col>-->
  829. <el-col :span="6">
  830. <el-form-item :label="'此次领料数量'">
  831. <el-input-number v-model="orderDetailData.issureQty" style="line-height: 20px;padding: 0;width: 100%"
  832. :controls="false" :step="0" :min="0" class="text-right"></el-input-number>
  833. </el-form-item>
  834. </el-col>
  835. <el-col :span="6">
  836. <el-form-item :label="'要求发料时间'">
  837. <el-date-picker
  838. style="width: 155px"
  839. v-model="orderDetailData.needDate"
  840. type="datetime"
  841. value-format="yyyy-MM-dd HH:mm:ss"
  842. placeholder="选择日期">
  843. </el-date-picker>
  844. </el-form-item>
  845. </el-col>
  846. </el-row>
  847. </el-form>
  848. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  849. <el-button type="primary" @click="saveIssueNoOrderDetail()">保存</el-button>
  850. <el-button type="primary" @click="saveOrderDetailFlag=false">关闭</el-button>
  851. </el-footer>
  852. </el-dialog>
  853. </div>
  854. </template>
  855. <script>
  856. import {
  857. searchNotifyHeader
  858. , searchNotifyOrderList
  859. , searchNotifyMaterialList
  860. , searchSumNotifyMaterialList
  861. , deleteNotifySOSPlus
  862. , updateNotifyStatus
  863. , deleteNotifyMaterial
  864. , searchNotifyLog
  865. , searchNotifyLogClose
  866. , getSiteAndBuByUserName
  867. , createNotify
  868. , getSOScheduledRoutingListForIssureByPaging
  869. , getPartListByPaging
  870. , xiadaNotify
  871. , editNotifyMaterial
  872. , deleteNotify
  873. } from "@/api/orderIssure/soIssueNotify.js"
  874. import {
  875. searchShopOrderByPaging
  876. , getRouteInShopOrder
  877. } from "@/api/shopOrder/shopOrder.js"
  878. import {
  879. searchAllResource
  880. } from "@/api/base/site.js"
  881. import {
  882. getTableDefaultListLanguage,
  883. getTableUserListLanguage,
  884. } from "@/api/table.js"
  885. import {saveIssueNoOrderDetail} from "../../../../api/orderIssure/soIssueNotify";
  886. export default {
  887. data() {
  888. return {
  889. height:200,
  890. activeName: 'detail',
  891. dataList: [],
  892. dataList2: [],
  893. dataList3: [],
  894. dataList4: [],
  895. dataList5: [],
  896. dataList6: [],
  897. userBuList:[],
  898. createNotifyFlag: false,
  899. saveOrderDetailFlag: false,
  900. closeData:{
  901. site:'',
  902. notifyNo:'',
  903. closeRemark:'',
  904. username:this.$store.state.user.name,
  905. },
  906. closeModalFlag:false,
  907. searchData: {
  908. page: 1,
  909. limit: 100,
  910. site:'',
  911. userName: '',
  912. notifyNo: '',
  913. status: '',
  914. issueFlag: '',
  915. loginUserName: this.$store.state.user.name,
  916. issueResult: '',
  917. startDate: this.dayjs().format("YYYY-MM-DD"),
  918. endDate: this.dayjs().format("YYYY-MM-DD"),
  919. sql: "",
  920. },
  921. notifyData:{
  922. site: '',
  923. bu: '',
  924. notifyNo: '',
  925. notifyDate: '',
  926. enteredDate: '',
  927. userName: this.$store.state.user.name,
  928. userDisplay: '',
  929. remark: '',
  930. planIssueDate: '',
  931. },
  932. pageIndex: 1,
  933. pageSize: 100,
  934. totalPage: 0,
  935. //工单分页
  936. co_pageIndex: 1,
  937. co_pageSize: 100,
  938. co_totalPage: 0,
  939. //派工单分页
  940. ss_pageIndex: 1,
  941. ss_pageSize: 100,
  942. ss_totalPage: 0,
  943. //非BOM物料分页
  944. pp_pageIndex: 1,
  945. pp_pageSize: 100,
  946. pp_totalPage: 0,
  947. dataListLoading: false,
  948. currentRow:'',
  949. columnList1:[
  950. {
  951. userId: this.$store.state.user.name,
  952. functionId: 701002,
  953. serialNumber: '701002Table1NotifyNo',
  954. tableId: "701002Table1",
  955. tableName: "领料申请主表",
  956. columnProp: "notifyNo",
  957. headerAlign: "center",
  958. align: "center",
  959. columnLabel: "申请单单号",
  960. columnHidden: false,
  961. columnImage: false,
  962. columnSortable: false,
  963. sortLv: 0,
  964. status: true,
  965. fixed: '',
  966. columnWidth: 100
  967. },{
  968. userId: this.$store.state.user.name,
  969. functionId: 701002,
  970. serialNumber: '701002Table1Bu',
  971. tableId: "701002Table1",
  972. tableName: "领料申请主表",
  973. columnProp: "bu",
  974. headerAlign: "center",
  975. align: "center",
  976. columnLabel: "BU",
  977. columnHidden: false,
  978. columnImage: false,
  979. columnSortable: false,
  980. sortLv: 0,
  981. status: true,
  982. fixed: '',
  983. columnWidth: 100
  984. },{
  985. userId: this.$store.state.user.name,
  986. functionId: 701002,
  987. serialNumber: '701002Table1NotifyDate',
  988. tableId: "701002Table1",
  989. tableName: "领料申请主表",
  990. columnProp: "notifyDate",
  991. headerAlign: "center",
  992. align: "center",
  993. columnLabel: "申请日期",
  994. columnHidden: false,
  995. columnImage: false,
  996. columnSortable: false,
  997. sortLv: 0,
  998. status: true,
  999. fixed: '',
  1000. columnWidth: 100
  1001. },{
  1002. userId: this.$store.state.user.name,
  1003. functionId: 701002,
  1004. serialNumber: '701002Table1UserName',
  1005. tableId: "701002Table1",
  1006. tableName: "领料申请主表",
  1007. columnProp: "userName",
  1008. headerAlign: "center",
  1009. align: "left",
  1010. columnLabel: "申请账号",
  1011. columnHidden: false,
  1012. columnImage: false,
  1013. columnSortable: false,
  1014. sortLv: 0,
  1015. status: true,
  1016. fixed: '',
  1017. columnWidth: 100
  1018. },{
  1019. userId: this.$store.state.user.name,
  1020. functionId: 701002,
  1021. serialNumber: '701002Table1UserDisplay',
  1022. tableId: "701002Table1",
  1023. tableName: "领料申请主表",
  1024. columnProp: "userDisplay",
  1025. headerAlign: "center",
  1026. align: "left",
  1027. columnLabel: "申请人姓名",
  1028. columnHidden: false,
  1029. columnImage: false,
  1030. columnSortable: false,
  1031. sortLv: 0,
  1032. status: true,
  1033. fixed: '',
  1034. columnWidth: 100
  1035. },{
  1036. userId: this.$store.state.user.name,
  1037. functionId: 701002,
  1038. serialNumber: '701002Table1IssueFlag',
  1039. tableId: "701002Table1",
  1040. tableName: "领料申请主表",
  1041. columnProp: "issueFlag",
  1042. headerAlign: "center",
  1043. align: "center",
  1044. columnLabel: "是否领料",
  1045. columnHidden: false,
  1046. columnImage: false,
  1047. columnSortable: false,
  1048. sortLv: 0,
  1049. status: true,
  1050. fixed: '',
  1051. columnWidth: 60
  1052. },{
  1053. userId: this.$store.state.user.name,
  1054. functionId: 701002,
  1055. serialNumber: '701002Table1IssueResult',
  1056. tableId: "701002Table1",
  1057. tableName: "领料申请主表",
  1058. columnProp: "issueResult",
  1059. headerAlign: "center",
  1060. align: "left",
  1061. columnLabel: "领料结果",
  1062. columnHidden: false,
  1063. columnImage: false,
  1064. columnSortable: false,
  1065. sortLv: 0,
  1066. status: true,
  1067. fixed: '',
  1068. columnWidth: 120
  1069. },{
  1070. userId: this.$store.state.user.name,
  1071. functionId: 701002,
  1072. serialNumber: '701002Table1Status',
  1073. tableId: "701002Table1",
  1074. tableName: "领料申请主表",
  1075. columnProp: "status",
  1076. headerAlign: "center",
  1077. align: "left",
  1078. columnLabel: "状态",
  1079. columnHidden: false,
  1080. columnImage: false,
  1081. columnSortable: false,
  1082. sortLv: 0,
  1083. status: true,
  1084. fixed: '',
  1085. columnWidth: 80
  1086. },{
  1087. userId: this.$store.state.user.name,
  1088. functionId: 701002,
  1089. serialNumber: '701002Table1Remark',
  1090. tableId: "701002Table1",
  1091. tableName: "领料申请主表",
  1092. columnProp: "remark",
  1093. headerAlign: "center",
  1094. align: "left",
  1095. columnLabel: "备注",
  1096. columnHidden: false,
  1097. columnImage: false,
  1098. columnSortable: false,
  1099. sortLv: 0,
  1100. status: true,
  1101. fixed: '',
  1102. columnWidth: 200
  1103. },
  1104. ],
  1105. columnList2:[
  1106. {
  1107. userId: this.$store.state.user.name,
  1108. functionId: 701002,
  1109. serialNumber: '701002Table2ItemNo',
  1110. tableId: "701002Table2",
  1111. tableName: "申请单工单信息明细表",
  1112. columnProp: "itemNo",
  1113. headerAlign: "center",
  1114. align: "right",
  1115. columnLabel: "序号",
  1116. columnHidden: false,
  1117. columnImage: false,
  1118. columnSortable: false,
  1119. sortLv: 0,
  1120. status: true,
  1121. fixed: '',
  1122. columnWidth: 40
  1123. },
  1124. {
  1125. userId: this.$store.state.user.name,
  1126. functionId: 701002,
  1127. serialNumber: '701002Table2NeedDate',
  1128. tableId: "701002Table2",
  1129. tableName: "申请单工单信息明细表",
  1130. columnProp: 'needDate',
  1131. headerAlign: "center",
  1132. align: "left",
  1133. columnLabel: '要求发料时间',
  1134. columnHidden: false,
  1135. columnImage: false,
  1136. columnSortable: false,
  1137. sortLv: 0,
  1138. status: true,
  1139. fixed: '',
  1140. columnWidth: 80,
  1141. },{
  1142. userId: this.$store.state.user.name,
  1143. functionId: 701002,
  1144. serialNumber: '701002Table2SOOrderNo',
  1145. tableId: "701002Table2",
  1146. tableName: "申请单工单信息明细表",
  1147. columnProp: "sOOrderNo",
  1148. headerAlign: "center",
  1149. align: "left",
  1150. columnLabel: "生产订单",
  1151. columnHidden: false,
  1152. columnImage: false,
  1153. columnSortable: false,
  1154. sortLv: 0,
  1155. status: true,
  1156. fixed: '',
  1157. columnWidth: 120
  1158. },{
  1159. userId: this.$store.state.user.name,
  1160. functionId: 701002,
  1161. serialNumber: '701002Table2OpsItemNo',
  1162. tableId: "701002Table2",
  1163. tableName: "申请单工单信息明细表",
  1164. columnProp: "opsItemNo",
  1165. headerAlign: "center",
  1166. align: "right",
  1167. columnLabel: "工序",
  1168. columnHidden: false,
  1169. columnImage: false,
  1170. columnSortable: false,
  1171. sortLv: 0,
  1172. status: true,
  1173. fixed: '',
  1174. columnWidth: 50
  1175. },{
  1176. userId: this.$store.state.user.name,
  1177. functionId: 701002,
  1178. serialNumber: '701002Table2ItemDesc',
  1179. tableId: "701002Table2",
  1180. tableName: "申请单工单信息明细表",
  1181. columnProp: "itemDesc",
  1182. headerAlign: "center",
  1183. align: "left",
  1184. columnLabel: "工序名称",
  1185. columnHidden: false,
  1186. columnImage: false,
  1187. columnSortable: false,
  1188. sortLv: 0,
  1189. status: true,
  1190. fixed: '',
  1191. columnWidth: 120
  1192. },{
  1193. userId: this.$store.state.user.name,
  1194. functionId: 701002,
  1195. serialNumber: '701002Table2SeqNo',
  1196. tableId: "701002Table2",
  1197. tableName: "申请单工单信息明细表",
  1198. columnProp: "seqNo",
  1199. headerAlign: "center",
  1200. align: "left",
  1201. columnLabel: "派工单号",
  1202. columnHidden: false,
  1203. columnImage: false,
  1204. columnSortable: false,
  1205. sortLv: 0,
  1206. status: true,
  1207. fixed: '',
  1208. columnWidth: 150
  1209. }, {
  1210. userId: this.$store.state.user.name,
  1211. functionId: 701002,
  1212. serialNumber: '701002Table2FGPartNo',
  1213. tableId: "701002Table2",
  1214. tableName: "申请单工单信息明细表",
  1215. columnProp: "fGPartNo",
  1216. headerAlign: "center",
  1217. align: "left",
  1218. columnLabel: "派工单物料",
  1219. columnHidden: false,
  1220. columnImage: false,
  1221. columnSortable: false,
  1222. sortLv: 0,
  1223. status: true,
  1224. fixed: '',
  1225. columnWidth: 80
  1226. }, {
  1227. userId: this.$store.state.user.name,
  1228. functionId: 701002,
  1229. serialNumber: '701002Table2PartDesc',
  1230. tableId: "701002Table2",
  1231. tableName: "申请单工单信息明细表",
  1232. columnProp: "partDesc",
  1233. headerAlign: "center",
  1234. align: "left",
  1235. columnLabel: "物料名称",
  1236. columnHidden: false,
  1237. columnImage: false,
  1238. columnSortable: false,
  1239. sortLv: 0,
  1240. status: true,
  1241. fixed: '',
  1242. columnWidth: 200
  1243. },
  1244. {
  1245. userId: this.$store.state.user.name,
  1246. functionId: 701002,
  1247. serialNumber: '701002Table2ResourceId',
  1248. tableId: "701002Table2",
  1249. tableName: "申请单工单信息明细表",
  1250. columnProp: 'resourceId',
  1251. headerAlign: "center",
  1252. align: "left",
  1253. columnLabel: '机台',
  1254. columnHidden: false,
  1255. columnImage: false,
  1256. columnSortable: false,
  1257. sortLv: 0,
  1258. status: true,
  1259. fixed: '',
  1260. columnWidth: 80,
  1261. },
  1262. {
  1263. userId: this.$store.state.user.name,
  1264. functionId: 701002,
  1265. serialNumber: '701002Table2IssureQty',
  1266. tableId: "701002Table2",
  1267. tableName: "申请单工单信息明细表",
  1268. columnProp: "issureQty",
  1269. headerAlign: "center",
  1270. align: "right",
  1271. columnLabel: "发料数量",
  1272. columnHidden: false,
  1273. columnImage: false,
  1274. columnSortable: false,
  1275. sortLv: 0,
  1276. status: true,
  1277. fixed: '',
  1278. columnWidth: 80
  1279. },
  1280. ],
  1281. columnList3:[
  1282. {
  1283. userId: this.$store.state.user.name,
  1284. functionId: 701002,
  1285. serialNumber: '701002Table3ItemNo',
  1286. tableId: "701002Table3",
  1287. tableName: "申请单材料明细表",
  1288. columnProp: "itemNo",
  1289. headerAlign: "center",
  1290. align: "right",
  1291. columnLabel: "申请单序号",
  1292. columnHidden: false,
  1293. columnImage: false,
  1294. columnSortable: false,
  1295. sortLv: 0,
  1296. status: true,
  1297. fixed: '',
  1298. columnWidth: 80
  1299. },{
  1300. userId: this.$store.state.user.name,
  1301. functionId: 701002,
  1302. serialNumber: '701002Table3ComponentPartNo',
  1303. tableId: "701002Table3",
  1304. tableName: "申请单材料明细表",
  1305. columnProp: "componentPartNo",
  1306. headerAlign: "center",
  1307. align: "center",
  1308. columnLabel: "材料编码",
  1309. columnHidden: false,
  1310. columnImage: false,
  1311. columnSortable: false,
  1312. sortLv: 0,
  1313. status: true,
  1314. fixed: '',
  1315. columnWidth: 100
  1316. },{
  1317. userId: this.$store.state.user.name,
  1318. functionId: 701002,
  1319. serialNumber: '701002Table3PartDesc',
  1320. tableId: "701002Table3",
  1321. tableName: "申请单材料明细表",
  1322. columnProp: "partDesc",
  1323. headerAlign: "center",
  1324. align: "left",
  1325. columnLabel: "材料名称",
  1326. columnHidden: false,
  1327. columnImage: false,
  1328. columnSortable: false,
  1329. sortLv: 0,
  1330. status: true,
  1331. fixed: '',
  1332. columnWidth: 130
  1333. },{
  1334. userId: this.$store.state.user.name,
  1335. functionId: 701002,
  1336. serialNumber: '701002Table3IssueMethod',
  1337. tableId: "701002Table3",
  1338. tableName: "申请单材料明细表",
  1339. columnProp: "issueMethod",
  1340. headerAlign: "center",
  1341. align: "left",
  1342. columnLabel: "领料方式",
  1343. columnHidden: false,
  1344. columnImage: false,
  1345. columnSortable: false,
  1346. sortLv: 0,
  1347. status: true,
  1348. fixed: '',
  1349. columnWidth: 100
  1350. },{
  1351. userId: this.$store.state.user.name,
  1352. functionId: 701002,
  1353. serialNumber: '701002Table3OutboundWarehouseId',
  1354. tableId: "701002Table3",
  1355. tableName: "申请单材料明细表",
  1356. columnProp: "outboundWarehouseId",
  1357. headerAlign: "center",
  1358. align: "left",
  1359. columnLabel: "领料仓库",
  1360. columnHidden: false,
  1361. columnImage: false,
  1362. columnSortable: false,
  1363. sortLv: 0,
  1364. status: true,
  1365. fixed: '',
  1366. columnWidth: 100
  1367. },{
  1368. userId: this.$store.state.user.name,
  1369. functionId: 701002,
  1370. serialNumber: '701002Table3NeedDate',
  1371. tableId: "701002Table3",
  1372. tableName: "申请单材料明细表",
  1373. columnProp: "needDate",
  1374. headerAlign: "center",
  1375. align: "center",
  1376. columnLabel: "需求时间",
  1377. columnHidden: false,
  1378. columnImage: false,
  1379. columnSortable: false,
  1380. sortLv: 0,
  1381. status: true,
  1382. fixed: '',
  1383. columnWidth: 110
  1384. },{
  1385. userId: this.$store.state.user.name,
  1386. functionId: 701002,
  1387. serialNumber: '701002Table3QtyToIssue',
  1388. tableId: "701002Table3",
  1389. tableName: "申请单材料明细表",
  1390. columnProp: "qtyToIssue",
  1391. headerAlign: "center",
  1392. align: "right",
  1393. columnLabel: "申请数量",
  1394. columnHidden: false,
  1395. columnImage: false,
  1396. columnSortable: false,
  1397. sortLv: 0,
  1398. status: true,
  1399. fixed: '',
  1400. columnWidth: 80
  1401. },{
  1402. userId: this.$store.state.user.name,
  1403. functionId: 701002,
  1404. serialNumber: '701002Table3QtyToIssueOriginal',
  1405. tableId: "701002Table3",
  1406. tableName: "申请单材料明细表",
  1407. columnProp: "qtyToIssueOriginal",
  1408. headerAlign: "center",
  1409. align: "right",
  1410. columnLabel: "已发数量",
  1411. columnHidden: false,
  1412. columnImage: false,
  1413. columnSortable: false,
  1414. sortLv: 0,
  1415. status: true,
  1416. fixed: '',
  1417. columnWidth: 80
  1418. },{
  1419. userId: this.$store.state.user.name,
  1420. functionId: 701002,
  1421. serialNumber: '701002Table3IssueType',
  1422. tableId: "701002Table3",
  1423. tableName: "申请单材料明细表",
  1424. columnProp: "issueType",
  1425. headerAlign: "center",
  1426. align: "right",
  1427. columnLabel: "类型",
  1428. columnHidden: false,
  1429. columnImage: false,
  1430. columnSortable: false,
  1431. sortLv: 0,
  1432. status: true,
  1433. fixed: '',
  1434. columnWidth: 80
  1435. },{
  1436. userId: this.$store.state.user.name,
  1437. functionId: 701002,
  1438. serialNumber: '701002Table3Remark',
  1439. tableId: "701002Table3",
  1440. tableName: "申请单材料明细表",
  1441. columnProp: "remark",
  1442. headerAlign: "center",
  1443. align: "left",
  1444. columnLabel: "备注",
  1445. columnHidden: false,
  1446. columnImage: false,
  1447. columnSortable: false,
  1448. sortLv: 0,
  1449. status: true,
  1450. fixed: '',
  1451. columnWidth: 160
  1452. },{
  1453. userId: this.$store.state.user.name,
  1454. functionId: 701002,
  1455. serialNumber: '701002Table3SOOrderNo',
  1456. tableId: "701002Table3",
  1457. tableName: "申请单材料明细表",
  1458. columnProp: "orderNo",
  1459. headerAlign: "center",
  1460. align: "left",
  1461. columnLabel: "生产订单",
  1462. columnHidden: false,
  1463. columnImage: false,
  1464. columnSortable: false,
  1465. sortLv: 0,
  1466. status: true,
  1467. fixed: '',
  1468. columnWidth: 120
  1469. },{
  1470. userId: this.$store.state.user.name,
  1471. functionId: 701002,
  1472. serialNumber: '701002Table3OpsItemNo',
  1473. tableId: "701002Table3",
  1474. tableName: "申请单材料明细表",
  1475. columnProp: "opsItemNo",
  1476. headerAlign: "center",
  1477. align: "right",
  1478. columnLabel: "工序",
  1479. columnHidden: false,
  1480. columnImage: false,
  1481. columnSortable: false,
  1482. sortLv: 0,
  1483. status: true,
  1484. fixed: '',
  1485. columnWidth: 50
  1486. },{
  1487. userId: this.$store.state.user.name,
  1488. functionId: 701002,
  1489. serialNumber: '701002Table3SeqNo',
  1490. tableId: "701002Table3",
  1491. tableName: "申请单材料明细表",
  1492. columnProp: "seqNo",
  1493. headerAlign: "center",
  1494. align: "left",
  1495. columnLabel: "派工单号",
  1496. columnHidden: false,
  1497. columnImage: false,
  1498. columnSortable: false,
  1499. sortLv: 0,
  1500. status: true,
  1501. fixed: '',
  1502. columnWidth: 150
  1503. },{
  1504. userId: this.$store.state.user.name,
  1505. functionId: 701002,
  1506. serialNumber: '701002Table3LocationNo',
  1507. tableId: "701002Table3",
  1508. tableName: "申请单材料明细表",
  1509. columnProp: "locationNo",
  1510. headerAlign: "center",
  1511. align: "left",
  1512. columnLabel: "机台",
  1513. columnHidden: false,
  1514. columnImage: false,
  1515. columnSortable: false,
  1516. sortLv: 0,
  1517. status: true,
  1518. fixed: '',
  1519. columnWidth: 80
  1520. },{
  1521. userId: this.$store.state.user.name,
  1522. functionId: 701002,
  1523. serialNumber: '701002Table3BOMItemNo',
  1524. tableId: "701002Table3",
  1525. tableName: "申请单材料明细表",
  1526. columnProp: "bOMItemNo",
  1527. headerAlign: "center",
  1528. align: "right",
  1529. columnLabel: "BOM序号",
  1530. columnHidden: false,
  1531. columnImage: false,
  1532. columnSortable: false,
  1533. sortLv: 0,
  1534. status: true,
  1535. fixed: '',
  1536. columnWidth: 80
  1537. },
  1538. ],
  1539. columnList4:[
  1540. {
  1541. userId: this.$store.state.user.name,
  1542. functionId: 701002,
  1543. serialNumber: '701002Table4IssueType',
  1544. tableId: "701002Table4",
  1545. tableName: "申请单材料明细表",
  1546. columnProp: "issueType",
  1547. headerAlign: "center",
  1548. align: "center",
  1549. columnLabel: "类型",
  1550. columnHidden: false,
  1551. columnImage: false,
  1552. columnSortable: false,
  1553. sortLv: 0,
  1554. status: true,
  1555. fixed: '',
  1556. columnWidth: 100
  1557. },
  1558. {
  1559. userId: this.$store.state.user.name,
  1560. functionId: 701002,
  1561. serialNumber: '701002Table4ComponentPartNo',
  1562. tableId: "701002Table4",
  1563. tableName: "申请单材料明细表",
  1564. columnProp: "componentPartNo",
  1565. headerAlign: "center",
  1566. align: "center",
  1567. columnLabel: "材料编码",
  1568. columnHidden: false,
  1569. columnImage: false,
  1570. columnSortable: false,
  1571. sortLv: 0,
  1572. status: true,
  1573. fixed: '',
  1574. columnWidth: 100
  1575. },{
  1576. userId: this.$store.state.user.name,
  1577. functionId: 701002,
  1578. serialNumber: '701002Table4PartDesc',
  1579. tableId: "701002Table4",
  1580. tableName: "申请单材料明细表",
  1581. columnProp: "partDesc",
  1582. headerAlign: "center",
  1583. align: "left",
  1584. columnLabel: "材料名称",
  1585. columnHidden: false,
  1586. columnImage: false,
  1587. columnSortable: false,
  1588. sortLv: 0,
  1589. status: true,
  1590. fixed: '',
  1591. columnWidth: 130
  1592. },{
  1593. userId: this.$store.state.user.name,
  1594. functionId: 701002,
  1595. serialNumber: '701002Table4QtyToIssue',
  1596. tableId: "701002Table4",
  1597. tableName: "申请单材料明细表",
  1598. columnProp: "qtyToIssue",
  1599. headerAlign: "center",
  1600. align: "right",
  1601. columnLabel: "合计申请数量",
  1602. columnHidden: false,
  1603. columnImage: false,
  1604. columnSortable: false,
  1605. sortLv: 0,
  1606. status: true,
  1607. fixed: '',
  1608. columnWidth: 80
  1609. },{
  1610. userId: this.$store.state.user.name,
  1611. functionId: 701002,
  1612. serialNumber: '701002Table4QtyToIssueOriginal',
  1613. tableId: "701002Table4",
  1614. tableName: "申请单材料明细表",
  1615. columnProp: "qtyToIssueOriginal",
  1616. headerAlign: "center",
  1617. align: "right",
  1618. columnLabel: "合计已发数量",
  1619. columnHidden: false,
  1620. columnImage: false,
  1621. columnSortable: false,
  1622. sortLv: 0,
  1623. status: true,
  1624. fixed: '',
  1625. columnWidth: 80
  1626. },
  1627. ],
  1628. columnList5:[
  1629. {
  1630. userId: this.$store.state.user.name,
  1631. functionId: 701002,
  1632. serialNumber: '701002Table5UpdateType',
  1633. tableId: "701002Table5",
  1634. tableName: "申请单材料删除记录表",
  1635. columnProp: "updateType",
  1636. headerAlign: "center",
  1637. align: "center",
  1638. columnLabel: "删除类型",
  1639. columnHidden: false,
  1640. columnImage: false,
  1641. columnSortable: false,
  1642. sortLv: 0,
  1643. status: true,
  1644. fixed: '',
  1645. columnWidth: 100
  1646. },
  1647. {
  1648. userId: this.$store.state.user.name,
  1649. functionId: 701002,
  1650. serialNumber: '701002Table5ItemNo',
  1651. tableId: "701002Table5",
  1652. tableName: "申请单材料删除记录表",
  1653. columnProp: "itemNo",
  1654. headerAlign: "center",
  1655. align: "right",
  1656. columnLabel: "领料单序号",
  1657. columnHidden: false,
  1658. columnImage: false,
  1659. columnSortable: false,
  1660. sortLv: 0,
  1661. status: true,
  1662. fixed: '',
  1663. columnWidth: 80
  1664. },
  1665. {
  1666. userId: this.$store.state.user.name,
  1667. functionId: 701002,
  1668. serialNumber: '701002Table5SOOrderNo',
  1669. tableId: "701002Table5",
  1670. tableName: "申请单材料删除记录表",
  1671. columnProp: "sOOrderNo",
  1672. headerAlign: "center",
  1673. align: "left",
  1674. columnLabel: "生产订单",
  1675. columnHidden: false,
  1676. columnImage: false,
  1677. columnSortable: false,
  1678. sortLv: 0,
  1679. status: true,
  1680. fixed: '',
  1681. columnWidth: 80
  1682. },
  1683. {
  1684. userId: this.$store.state.user.name,
  1685. functionId: 701002,
  1686. serialNumber: '701002Table5SeqNo',
  1687. tableId: "701002Table5",
  1688. tableName: "申请单材料删除记录表",
  1689. columnProp: "seqNo",
  1690. headerAlign: "center",
  1691. align: "left",
  1692. columnLabel: "派工单",
  1693. columnHidden: false,
  1694. columnImage: false,
  1695. columnSortable: false,
  1696. sortLv: 0,
  1697. status: true,
  1698. fixed: '',
  1699. columnWidth: 120
  1700. },
  1701. {
  1702. userId: this.$store.state.user.name,
  1703. functionId: 701002,
  1704. serialNumber: '701002Table5ComponentPartNo',
  1705. tableId: "701002Table5",
  1706. tableName: "申请单材料删除记录表",
  1707. columnProp: "componentPartNo",
  1708. headerAlign: "center",
  1709. align: "left",
  1710. columnLabel: "材料物料编码",
  1711. columnHidden: false,
  1712. columnImage: false,
  1713. columnSortable: false,
  1714. sortLv: 0,
  1715. status: true,
  1716. fixed: '',
  1717. columnWidth: 100
  1718. },
  1719. {
  1720. userId: this.$store.state.user.name,
  1721. functionId: 701002,
  1722. serialNumber: '701002Table5IssueType',
  1723. tableId: "701002Table5",
  1724. tableName: "申请单材料删除记录表",
  1725. columnProp: "issueType",
  1726. headerAlign: "center",
  1727. align: "left",
  1728. columnLabel: "材料类型",
  1729. columnHidden: false,
  1730. columnImage: false,
  1731. columnSortable: false,
  1732. sortLv: 0,
  1733. status: true,
  1734. fixed: '',
  1735. columnWidth: 100
  1736. },
  1737. {
  1738. userId: this.$store.state.user.name,
  1739. functionId: 701002,
  1740. serialNumber: '701002Table5QtyToIssue',
  1741. tableId: "701002Table5",
  1742. tableName: "申请单材料删除记录表",
  1743. columnProp: "qtyToIssue",
  1744. headerAlign: "center",
  1745. align: "right",
  1746. columnLabel: "要求领料数量",
  1747. columnHidden: false,
  1748. columnImage: false,
  1749. columnSortable: false,
  1750. sortLv: 0,
  1751. status: true,
  1752. fixed: '',
  1753. columnWidth: 100
  1754. },
  1755. {
  1756. userId: this.$store.state.user.name,
  1757. functionId: 701002,
  1758. serialNumber: '701002Table5UpdateBy',
  1759. tableId: "701002Table5",
  1760. tableName: "申请单材料删除记录表",
  1761. columnProp: "updateBy",
  1762. headerAlign: "center",
  1763. align: "left",
  1764. columnLabel: "删除账号",
  1765. columnHidden: false,
  1766. columnImage: false,
  1767. columnSortable: false,
  1768. sortLv: 0,
  1769. status: true,
  1770. fixed: '',
  1771. columnWidth: 100
  1772. },
  1773. {
  1774. userId: this.$store.state.user.name,
  1775. functionId: 701002,
  1776. serialNumber: '701002Table5UpdateDate',
  1777. tableId: "701002Table5",
  1778. tableName: "申请单材料删除记录表",
  1779. columnProp: "updateDate",
  1780. headerAlign: "center",
  1781. align: "center",
  1782. columnLabel: "删除时间",
  1783. columnHidden: false,
  1784. columnImage: false,
  1785. columnSortable: false,
  1786. sortLv: 0,
  1787. status: true,
  1788. fixed: '',
  1789. columnWidth: 120
  1790. },
  1791. ],
  1792. columnList6:[
  1793. {
  1794. userId: this.$store.state.user.name,
  1795. functionId: 701002,
  1796. serialNumber: '701002Table6UserDisplay',
  1797. tableId: "701002Table6",
  1798. tableName: "申请单材料关闭明细",
  1799. columnProp: "userDisplay",
  1800. headerAlign: "center",
  1801. align: "left",
  1802. columnLabel: "操作人",
  1803. columnHidden: false,
  1804. columnImage: false,
  1805. columnSortable: false,
  1806. sortLv: 0,
  1807. status: true,
  1808. fixed: '',
  1809. columnWidth: 100
  1810. },
  1811. {
  1812. userId: this.$store.state.user.name,
  1813. functionId: 701002,
  1814. serialNumber: '701002Table6ActionTime',
  1815. tableId: "701002Table6",
  1816. tableName: "申请单材料关闭明细",
  1817. columnProp: "actionTime",
  1818. headerAlign: "center",
  1819. align: "left",
  1820. columnLabel: "操作时间",
  1821. columnHidden: false,
  1822. columnImage: false,
  1823. columnSortable: false,
  1824. sortLv: 0,
  1825. status: true,
  1826. fixed: '',
  1827. columnWidth: 130
  1828. },
  1829. {
  1830. userId: this.$store.state.user.name,
  1831. functionId: 701002,
  1832. serialNumber: '701002Table6ActionRemark',
  1833. tableId: "701002Table6",
  1834. tableName: "申请单材料关闭明细",
  1835. columnProp: "actionRemark",
  1836. headerAlign: "center",
  1837. align: "left",
  1838. columnLabel: "关闭原因",
  1839. columnHidden: false,
  1840. columnImage: false,
  1841. columnSortable: false,
  1842. sortLv: 0,
  1843. status: true,
  1844. fixed: '',
  1845. columnWidth: 300
  1846. },
  1847. ],
  1848. // 导出 start
  1849. exportData: [],
  1850. exportName: '发料申请单'+this.dayjs().format('YYYYMMDDHHmmss'),
  1851. exportHeader: ["发料申请单"],
  1852. exportFooter: [],
  1853. // 导出 end
  1854. orderDetailData:{
  1855. orderNo:'',
  1856. seqNo:'',
  1857. locationNo:'',
  1858. qtyrequired:'',
  1859. issureQty:0,
  1860. partDesc:'',
  1861. partNo:'',
  1862. resourceId:'',
  1863. resourceDesc:'',
  1864. needDate:'',
  1865. itemDesc:'',
  1866. workCenterNo:'',
  1867. itemNo:0,
  1868. materialType:'BOM物料',
  1869. alreadyApplyTotal: 0
  1870. },
  1871. chooseSOSModalFlag: false,
  1872. chooseSOSData: {
  1873. page: 1,
  1874. limit: 100,
  1875. orderno: '',
  1876. seqno: '',
  1877. sResourceid: '',
  1878. startDate: '',
  1879. endDate: '',
  1880. },
  1881. chooseOrderModalFlag: false,
  1882. chooseOrderData: {
  1883. page: 1,
  1884. limit: 100,
  1885. orderNo: '',
  1886. status: '',
  1887. date3: '',
  1888. date4: '',
  1889. statusList: '',
  1890. },
  1891. chooseOrderList: [],
  1892. chooseOperationModalFlag: false,
  1893. chooseOperationData: {
  1894. orderNo: '',
  1895. site: '',
  1896. itemDesc: ''
  1897. },
  1898. chooseOperationList: [],
  1899. chooseResourceModalFlag: false,
  1900. chooseResourceData: {
  1901. site: '',
  1902. workCenterNo: '',
  1903. resourceID: '',
  1904. resourceDesc: '',
  1905. },
  1906. chooseResourceList: [],
  1907. chooseSOSList: [],
  1908. choosePartModalFlag: false,
  1909. choosePartData: {
  1910. page: 1,
  1911. limit: 100,
  1912. site: '',
  1913. sourceBu: '',
  1914. partNo: '',
  1915. partDesc: '',
  1916. spec: '',
  1917. },
  1918. choosePartList: [],
  1919. chooseSOSColumnList: [
  1920. {
  1921. userId: this.$store.state.user.name,
  1922. functionId: 701001,
  1923. serialNumber: '701001Table2Orderno',
  1924. tableId: "701001Table2",
  1925. tableName: "查询派工单",
  1926. columnProp: 'orderno',
  1927. headerAlign: "center",
  1928. align: "center",
  1929. columnLabel: '生产订单',
  1930. columnHidden: false,
  1931. columnImage: false,
  1932. columnSortable: false,
  1933. sortLv: 0,
  1934. status: true,
  1935. fixed: '',
  1936. columnWidth: 120,
  1937. },
  1938. {
  1939. userId: this.$store.state.user.name,
  1940. functionId: 701001,
  1941. serialNumber: '701001Table2Seqno',
  1942. tableId: "701001Table2",
  1943. tableName: "查询派工单",
  1944. columnProp: 'seqno',
  1945. headerAlign: "center",
  1946. align: "center",
  1947. columnLabel: '派工单号',
  1948. columnHidden: false,
  1949. columnImage: false,
  1950. columnSortable: false,
  1951. sortLv: 0,
  1952. status: true,
  1953. fixed: '',
  1954. columnWidth: 150,
  1955. },
  1956. {
  1957. userId: this.$store.state.user.name,
  1958. functionId: 701001,
  1959. serialNumber: '701001Table2PartNo',
  1960. tableId: "701001Table2",
  1961. tableName: "查询派工单",
  1962. columnProp: 'partNo',
  1963. headerAlign: "center",
  1964. align: "left",
  1965. columnLabel: '物料编码',
  1966. columnHidden: false,
  1967. columnImage: false,
  1968. columnSortable: false,
  1969. sortLv: 0,
  1970. status: true,
  1971. fixed: '',
  1972. columnWidth: 80,
  1973. },
  1974. {
  1975. userId: this.$store.state.user.name,
  1976. functionId: 701001,
  1977. serialNumber: '701001Table2PartDesc',
  1978. tableId: "701001Table2",
  1979. tableName: "查询派工单",
  1980. columnProp: 'partDesc',
  1981. headerAlign: "center",
  1982. align: "left",
  1983. columnLabel: '物料描述',
  1984. columnHidden: false,
  1985. columnImage: false,
  1986. columnSortable: false,
  1987. sortLv: 0,
  1988. status: true,
  1989. fixed: '',
  1990. columnWidth: 120,
  1991. },
  1992. {
  1993. userId: this.$store.state.user.name,
  1994. functionId: 701001,
  1995. serialNumber: '701001Table2Qtyrequired',
  1996. tableId: "701001Table2",
  1997. tableName: "查询派工单",
  1998. columnProp: 'qtyrequired',
  1999. headerAlign: "center",
  2000. align: "right",
  2001. columnLabel: '派工数量',
  2002. columnHidden: false,
  2003. columnImage: false,
  2004. columnSortable: false,
  2005. sortLv: 0,
  2006. status: true,
  2007. fixed: '',
  2008. columnWidth: 80,
  2009. },
  2010. {
  2011. userId: this.$store.state.user.name,
  2012. functionId: 701001,
  2013. serialNumber: '701001Table2SResourceid',
  2014. tableId: "701001Table2",
  2015. tableName: "查询派工单",
  2016. columnProp: 'sResourceid',
  2017. headerAlign: "center",
  2018. align: "left",
  2019. columnLabel: '机台编码',
  2020. columnHidden: false,
  2021. columnImage: false,
  2022. columnSortable: false,
  2023. sortLv: 0,
  2024. status: true,
  2025. fixed: '',
  2026. columnWidth: 60,
  2027. },
  2028. {
  2029. userId: this.$store.state.user.name,
  2030. functionId: 701001,
  2031. serialNumber: '701001Table2ResourceDesc',
  2032. tableId: "701001Table2",
  2033. tableName: "查询派工单",
  2034. columnProp: 'resourceDesc',
  2035. headerAlign: "center",
  2036. align: "left",
  2037. columnLabel: '机台名称',
  2038. columnHidden: false,
  2039. columnImage: false,
  2040. columnSortable: false,
  2041. sortLv: 0,
  2042. status: true,
  2043. fixed: '',
  2044. columnWidth: 100,
  2045. },
  2046. {
  2047. userId: this.$store.state.user.name,
  2048. functionId: 701001,
  2049. serialNumber: '701001Table2StartDate',
  2050. tableId: "701001Table2",
  2051. tableName: "查询派工单",
  2052. columnProp: 'startDate',
  2053. headerAlign: "center",
  2054. align: "left",
  2055. columnLabel: '开始日期',
  2056. columnHidden: false,
  2057. columnImage: false,
  2058. columnSortable: false,
  2059. sortLv: 0,
  2060. status: true,
  2061. fixed: '',
  2062. columnWidth: 100,
  2063. },
  2064. ],
  2065. chooseOrderColumnList: [
  2066. {
  2067. userId: this.$store.state.user.name,
  2068. functionId: 701001,
  2069. serialNumber: '701001Table2Orderno',
  2070. tableId: "701001Table2",
  2071. tableName: "查询工单",
  2072. columnProp: 'orderNo',
  2073. headerAlign: "center",
  2074. align: "center",
  2075. columnLabel: '工单号',
  2076. columnHidden: false,
  2077. columnImage: false,
  2078. columnSortable: false,
  2079. sortLv: 0,
  2080. status: true,
  2081. fixed: '',
  2082. columnWidth: 120,
  2083. },
  2084. {
  2085. userId: this.$store.state.user.name,
  2086. functionId: 701001,
  2087. serialNumber: '701001Table2PartNo',
  2088. tableId: "701001Table2",
  2089. tableName: "查询工单",
  2090. columnProp: 'partNo',
  2091. headerAlign: "center",
  2092. align: "left",
  2093. columnLabel: '物料编码',
  2094. columnHidden: false,
  2095. columnImage: false,
  2096. columnSortable: false,
  2097. sortLv: 0,
  2098. status: true,
  2099. fixed: '',
  2100. columnWidth: 120,
  2101. },
  2102. {
  2103. userId: this.$store.state.user.name,
  2104. functionId: 701001,
  2105. serialNumber: '701001Table2PartDescription',
  2106. tableId: "701001Table2",
  2107. tableName: "查询工单",
  2108. columnProp: 'partDescription',
  2109. headerAlign: "center",
  2110. align: "left",
  2111. columnLabel: '物料描述',
  2112. columnHidden: false,
  2113. columnImage: false,
  2114. columnSortable: false,
  2115. sortLv: 0,
  2116. status: true,
  2117. fixed: '',
  2118. columnWidth: 150,
  2119. },
  2120. {
  2121. userId: this.$store.state.user.name,
  2122. functionId: 701001,
  2123. serialNumber: '701001Table2LotSize',
  2124. tableId: "701001Table2",
  2125. tableName: "查询工单",
  2126. columnProp: 'lotSize',
  2127. headerAlign: "center",
  2128. align: "right",
  2129. columnLabel: '工单数量',
  2130. columnHidden: false,
  2131. columnImage: false,
  2132. columnSortable: false,
  2133. sortLv: 0,
  2134. status: true,
  2135. fixed: '',
  2136. columnWidth: 100,
  2137. },
  2138. {
  2139. userId: this.$store.state.user.name,
  2140. functionId: 701001,
  2141. serialNumber: '701001Table2Status',
  2142. tableId: "701001Table2",
  2143. tableName: "查询工单",
  2144. columnProp: 'status',
  2145. headerAlign: "center",
  2146. align: "center",
  2147. columnLabel: '状态',
  2148. columnHidden: false,
  2149. columnImage: false,
  2150. columnSortable: false,
  2151. sortLv: 0,
  2152. status: true,
  2153. fixed: '',
  2154. columnWidth: 80,
  2155. },
  2156. ],
  2157. chooseOperationColumnList: [
  2158. {
  2159. userId: this.$store.state.user.name,
  2160. functionId: 701001,
  2161. serialNumber: '701001Table2ItemNo',
  2162. tableId: "701001Table2",
  2163. tableName: "查询工序",
  2164. columnProp: 'itemNo',
  2165. headerAlign: "center",
  2166. align: "center",
  2167. columnLabel: '工序号',
  2168. columnHidden: false,
  2169. columnImage: false,
  2170. columnSortable: false,
  2171. sortLv: 0,
  2172. status: true,
  2173. fixed: '',
  2174. columnWidth: 80,
  2175. },
  2176. {
  2177. userId: this.$store.state.user.name,
  2178. functionId: 701001,
  2179. serialNumber: '701001Table2OperationDesc',
  2180. tableId: "701001Table2",
  2181. tableName: "查询工序",
  2182. columnProp: 'operationDesc',
  2183. headerAlign: "center",
  2184. align: "left",
  2185. columnLabel: '工序名称',
  2186. columnHidden: false,
  2187. columnImage: false,
  2188. columnSortable: false,
  2189. sortLv: 0,
  2190. status: true,
  2191. fixed: '',
  2192. columnWidth: 120,
  2193. }
  2194. ],
  2195. chooseResourceColumnList: [
  2196. {
  2197. userId: this.$store.state.user.name,
  2198. functionId: 701001,
  2199. serialNumber: '701001Table2ResourceID',
  2200. tableId: "701001Table2",
  2201. tableName: "查询机台",
  2202. columnProp: 'resourceID',
  2203. headerAlign: "center",
  2204. align: "left",
  2205. columnLabel: '机台编码',
  2206. columnHidden: false,
  2207. columnImage: false,
  2208. columnSortable: false,
  2209. sortLv: 0,
  2210. status: true,
  2211. fixed: '',
  2212. columnWidth: 100,
  2213. },
  2214. {
  2215. userId: this.$store.state.user.name,
  2216. functionId: 701001,
  2217. serialNumber: '701001Table2ResourceDesc',
  2218. tableId: "701001Table2",
  2219. tableName: "查询机台",
  2220. columnProp: 'resourceDesc',
  2221. headerAlign: "center",
  2222. align: "left",
  2223. columnLabel: '机台描述',
  2224. columnHidden: false,
  2225. columnImage: false,
  2226. columnSortable: false,
  2227. sortLv: 0,
  2228. status: true,
  2229. fixed: '',
  2230. columnWidth: 150,
  2231. },
  2232. ],
  2233. }
  2234. },
  2235. computed: {
  2236. // 计算属性:判断当前状态是否可编辑
  2237. isEditableStatusComputed() {
  2238. if (!this.currentRow || !this.currentRow.status) {
  2239. return false;
  2240. }
  2241. return this.currentRow.status === '草稿' || this.currentRow.status === '编辑中';
  2242. }
  2243. },
  2244. mounted () {
  2245. this.$nextTick(() => {
  2246. this.height = (window.innerHeight- 315) / 2
  2247. })
  2248. },
  2249. // watch: {
  2250. // searchData: {
  2251. // deep: true,
  2252. // handler: function (newV, oldV) {
  2253. // this.searchData.partNo = this.searchData.partNo.toUpperCase()
  2254. // }
  2255. // },
  2256. // },
  2257. created () {
  2258. // 动态列
  2259. this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
  2260. this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
  2261. this.getTableUserColumn(this.$route.meta.menuId+'table3',3)
  2262. this.getTableUserColumn(this.$route.meta.menuId+'table4',4)
  2263. this.getTableUserColumn(this.$route.meta.menuId+'table5',5)
  2264. this.getTableUserColumn(this.$route.meta.menuId+'table6',6)
  2265. },
  2266. methods: {
  2267. saveIssueNoOrderDetail,
  2268. // 动态列开始 获取 用户保存的 格式列
  2269. async getTableUserColumn(tableId, columnId) {
  2270. let queryTableUser = {
  2271. userId: this.$store.state.user.name,
  2272. functionId: this.$route.meta.menuId,
  2273. tableId: tableId,
  2274. status: true,
  2275. languageCode: this.$i18n.locale
  2276. }
  2277. await getTableUserListLanguage(queryTableUser).then(({data}) => {
  2278. if (data.rows.length > 0) {
  2279. //this.columnList1 = []
  2280. switch (columnId) {
  2281. case 1:
  2282. this.columnList1 = data.rows
  2283. break;
  2284. case 2:
  2285. this.columnList2 = data.rows
  2286. break;
  2287. case 3:
  2288. this.columnList3 = data.rows
  2289. break;
  2290. case 4:
  2291. this.columnList4 = data.rows
  2292. break;
  2293. case 5:
  2294. this.columnList5 = data.rows
  2295. break;
  2296. case 6:
  2297. this.columnList6 = data.rows
  2298. break;
  2299. }
  2300. } else {
  2301. this.getColumnList(tableId, columnId)
  2302. }
  2303. })
  2304. },
  2305. // 获取 tableDefault 列
  2306. async getColumnList (tableId, columnId) {
  2307. let queryTable= {
  2308. functionId: this.$route.meta.menuId,
  2309. tableId: tableId,
  2310. languageCode: this.$i18n.locale
  2311. }
  2312. await getTableDefaultListLanguage(queryTable).then(({data}) => {
  2313. if (!data.rows.length == 0) {
  2314. switch (columnId) {
  2315. case 1:
  2316. this.columnList1 = data.rows
  2317. break;
  2318. case 2:
  2319. this.columnList2 = data.rows
  2320. break;
  2321. case 3:
  2322. this.columnList3 = data.rows
  2323. break;
  2324. case 4:
  2325. this.columnList4 = data.rows
  2326. break;
  2327. case 5:
  2328. this.columnList5 = data.rows
  2329. break;
  2330. case 6:
  2331. this.columnList6 = data.rows
  2332. break;
  2333. }
  2334. } else {
  2335. // this.showDefault = true.
  2336. }
  2337. })
  2338. },
  2339. // 每页数
  2340. sizeChangeHandle (val) {
  2341. this.pageSize = val
  2342. this.pageIndex = 1
  2343. this.searchTable()
  2344. },
  2345. // 当前页
  2346. currentChangeHandle (val) {
  2347. this.pageIndex = val
  2348. this.searchTable()
  2349. },
  2350. tabClick (tab, event) {
  2351. // 刷新列表数据
  2352. this.refreshCurrentTabTable()
  2353. },
  2354. changeData(row){
  2355. this.currentRow = JSON.parse(JSON.stringify(row));
  2356. this.refreshCurrentTabTable ();
  2357. },
  2358. refreshCurrentTabTable(){
  2359. if(this.currentRow===''||this.currentRow===null){
  2360. this.currentRow={site:'',notifyNo:''}
  2361. }
  2362. if(this.activeName==='detail'){
  2363. searchNotifyOrderList(this.currentRow).then(({data}) => {
  2364. //区分请求成功和失败的状况
  2365. if (data && data.code == 0) {
  2366. this.dataList2 = data.rows
  2367. } else {
  2368. this.dataList2 = [];
  2369. }
  2370. });
  2371. }else if(this.activeName==='sub'){
  2372. searchNotifyMaterialList(this.currentRow).then(({data}) => {
  2373. //区分请求成功和失败的状况
  2374. if (data && data.code == 0) {
  2375. this.dataList3 = data.rows
  2376. } else {
  2377. this.dataList3 = [];
  2378. }
  2379. });
  2380. }else if(this.activeName==='change'){
  2381. searchNotifyLog(this.currentRow).then(({data}) => {
  2382. //区分请求成功和失败的状况
  2383. if (data && data.code == 0) {
  2384. this.dataList5 = data.rows
  2385. } else {
  2386. this.dataList5 = [];
  2387. }
  2388. });
  2389. }else if(this.activeName==='close'){
  2390. searchNotifyLogClose(this.currentRow).then(({data}) => {
  2391. //区分请求成功和失败的状况
  2392. if (data && data.code == 0) {
  2393. this.dataList6 = data.rows
  2394. } else {
  2395. this.dataList6 = [];
  2396. }
  2397. });
  2398. }else {
  2399. searchSumNotifyMaterialList(this.currentRow).then(({data}) => {
  2400. //区分请求成功和失败的状况
  2401. if (data && data.code == 0) {
  2402. this.dataList4 = data.rows
  2403. } else {
  2404. this.dataList4 = [];
  2405. }
  2406. });
  2407. }
  2408. },
  2409. searchTable(){
  2410. this.searchData.limit = this.pageSize
  2411. this.searchData.page = this.pageIndex
  2412. // 返回 Promise,让外部可以等它完成
  2413. return new Promise((resolve, reject) => {
  2414. searchNotifyHeader(this.searchData).then(({ data }) => {
  2415. if (data && data.code == 0) {
  2416. this.dataList = data.page.list;
  2417. this.pageIndex = data.page.currPage;
  2418. this.pageSize = data.page.pageSize;
  2419. this.totalPage = data.page.totalCount;
  2420. resolve(); // 请求成功,执行 resolve
  2421. } else {
  2422. this.dataList = [];
  2423. reject(new Error(data ? data.msg : '请求失败'));
  2424. }
  2425. }).catch(err => {
  2426. this.dataList = [];
  2427. reject(err); // 请求出错
  2428. });
  2429. });
  2430. },
  2431. closeNotifyModel(row){
  2432. this.closeData.site=row.site
  2433. this.closeData.notifyNo=row.notifyNo
  2434. this.closeData.closeRemark=''
  2435. this.closeModalFlag=true
  2436. },
  2437. closeNotify(){
  2438. if(this.closeData.closeRemark==null||this.closeData.closeRemark===''){
  2439. this.$alert("必须输入关闭原因", '错误', {
  2440. confirmButtonText: '确定'
  2441. })
  2442. return false;
  2443. }
  2444. let inData={
  2445. site:this.closeData.site,
  2446. notifyNo:this.closeData.notifyNo,
  2447. closeRemark:this.closeData.closeRemark,
  2448. username:this.$store.state.user.name,
  2449. status:'已关闭',
  2450. }
  2451. updateNotifyStatus(inData).then(({data}) => {
  2452. if (data && data.code === 0) {
  2453. this.closeModalFlag=false
  2454. this.searchTable()
  2455. this.$message({
  2456. message: '操作成功',
  2457. type: 'success',
  2458. duration: 1500,
  2459. onClose: () => {}
  2460. })
  2461. } else {
  2462. this.$alert(data.msg, '错误', {
  2463. confirmButtonText: '确定'
  2464. })
  2465. }
  2466. })
  2467. },
  2468. deleteNotifyConfirm(row){
  2469. this.$confirm('确认删除?', '提示', {
  2470. confirmButtonText: '确定',
  2471. cancelButtonText: '取消',
  2472. type: 'warning'
  2473. }).then(() => {
  2474. let inData={
  2475. site:row.site,
  2476. notifyNo:row.notifyNo
  2477. }
  2478. deleteNotify(inData).then(({data}) => {
  2479. if (data && data.code === 0) {
  2480. this.searchTable()
  2481. this.$message({
  2482. message: '操作成功',
  2483. type: 'success',
  2484. duration: 1500,
  2485. onClose: () => {}
  2486. })
  2487. } else {
  2488. this.$alert(data.msg, '错误', {
  2489. confirmButtonText: '确定'
  2490. })
  2491. }
  2492. })
  2493. })
  2494. },
  2495. openNotify(row){
  2496. this.$confirm('确认打开?', '提示', {
  2497. confirmButtonText: '确定',
  2498. cancelButtonText: '取消',
  2499. type: 'warning'
  2500. }).then(() => {
  2501. let inData={
  2502. site:row.site,
  2503. notifyNo:row.notifyNo,
  2504. status:'已下达',
  2505. }
  2506. updateNotifyStatus(inData).then(({data}) => {
  2507. if (data && data.code === 0) {
  2508. this.searchTable()
  2509. this.$message({
  2510. message: '操作成功',
  2511. type: 'success',
  2512. duration: 1500,
  2513. onClose: () => {}
  2514. })
  2515. } else {
  2516. this.$alert(data.msg, '错误', {
  2517. confirmButtonText: '确定'
  2518. })
  2519. }
  2520. })
  2521. })
  2522. },
  2523. deleteNotifyMaterial(row){
  2524. this.$confirm('确认删除?', '提示', {
  2525. confirmButtonText: '确定',
  2526. cancelButtonText: '取消',
  2527. type: 'warning'
  2528. }).then(() => {
  2529. deleteNotifyMaterial(row).then(({data}) => {
  2530. if (data && data.code === 0) {
  2531. this.refreshCurrentTabTable()
  2532. this.$message({
  2533. message: '操作成功',
  2534. type: 'success',
  2535. duration: 1500,
  2536. onClose: () => {}
  2537. })
  2538. } else {
  2539. this.$alert(data.msg, '错误', {
  2540. confirmButtonText: '确定'
  2541. })
  2542. }
  2543. })
  2544. })
  2545. },
  2546. deleteNotifySOSPlus(row){
  2547. // 检查当前状态是否允许编辑
  2548. if (!this.isEditableStatusComputed) {
  2549. this.$alert('当前状态不允许编辑!只有草稿或编辑中状态才能删除明细。', '提示', {
  2550. confirmButtonText: '确定'
  2551. })
  2552. return false
  2553. }
  2554. this.$confirm('确认删除?', '提示', {
  2555. confirmButtonText: '确定',
  2556. cancelButtonText: '取消',
  2557. type: 'warning'
  2558. }).then(() => {
  2559. deleteNotifySOSPlus(row).then(({data}) => {
  2560. if (data && data.code === 0) {
  2561. this.refreshCurrentTabTable()
  2562. this.$message({
  2563. message: '操作成功',
  2564. type: 'success',
  2565. duration: 1500,
  2566. onClose: () => {}
  2567. })
  2568. } else {
  2569. this.$alert(data.msg, '错误', {
  2570. confirmButtonText: '确定'
  2571. })
  2572. }
  2573. })
  2574. })
  2575. },
  2576. //申请单主表新增方法
  2577. //新增领料申请单模态框
  2578. createNotifyModal(){
  2579. let inData={
  2580. username:this.$store.state.user.name
  2581. }
  2582. getSiteAndBuByUserName(inData).then(({data}) =>{
  2583. if (data && data.code === 0) {
  2584. this.userBuList=data.rows
  2585. if (this.userBuList.length > 0) {
  2586. this.notifyData.bu = this.userBuList[0].buNo
  2587. }
  2588. }
  2589. })
  2590. this.createNotifyFlag=true
  2591. },
  2592. //保存领料申请单
  2593. saveNotify(){
  2594. let buValue = this.notifyData.bu
  2595. let site = buValue.split('_')[0]
  2596. let bu = buValue.split('_')[1]
  2597. let inData={
  2598. site: site,
  2599. bu: bu,
  2600. userName:this.$store.state.user.name,
  2601. remark: this.notifyData.remark
  2602. }
  2603. createNotify(inData).then(({data})=>{
  2604. if (data.code === 0) {
  2605. this.$message({
  2606. message: '操作成功',
  2607. type: 'success',
  2608. duration: 1500,
  2609. onClose: () => {}
  2610. })
  2611. this.createNotifyFlag = false
  2612. // 刷新主表数据
  2613. this.searchTable()
  2614. // 清空表单数据
  2615. this.notifyData = {
  2616. site: '',
  2617. bu: '',
  2618. notifyNo: '',
  2619. notifyDate: '',
  2620. enteredDate: '',
  2621. userName: this.$store.state.user.name,
  2622. userDisplay: '',
  2623. remark: '',
  2624. planIssueDate: '',
  2625. }
  2626. }else {
  2627. this.$alert(data.msg, '错误', {
  2628. confirmButtonText: '确定'
  2629. })
  2630. }
  2631. })
  2632. },
  2633. //新增派工单明细
  2634. createOrderDetail(){
  2635. // 检查是否选择了主表行
  2636. if (!this.currentRow || !this.currentRow.notifyNo) {
  2637. this.$alert('请先选择一条主表记录!', '提示', {
  2638. confirmButtonText: '确定'
  2639. })
  2640. return false
  2641. }
  2642. // 检查当前状态是否允许编辑
  2643. if (!this.isEditableStatusComputed) {
  2644. this.$alert('当前状态不允许编辑!只有草稿或编辑中状态才能新增明细。', '提示', {
  2645. confirmButtonText: '确定'
  2646. })
  2647. return false
  2648. }
  2649. // 清除所有数据,设置默认值
  2650. this.orderDetailData = {
  2651. orderNo: '',
  2652. seqNo: '',
  2653. operationNo: '',
  2654. locationNo: '',
  2655. qtyRequired: '',
  2656. issureQty: 0,
  2657. partDesc: '',
  2658. partNo: '',
  2659. resourceId: '',
  2660. resourceDesc: '',
  2661. itemDesc: '',
  2662. itemNo: 0,
  2663. workCenterNo: '',
  2664. needDate: '',
  2665. materialType: 'BOM物料',
  2666. alreadyApplyTotal: 0
  2667. }
  2668. this.saveOrderDetailFlag = true
  2669. },
  2670. saveIssueNoOrderDetail(){
  2671. // 数据验证
  2672. // 非BOM物料时,只校验领取数量和要求发料时间
  2673. if (this.orderDetailData.materialType === 'BOM物料') {
  2674. if (!this.orderDetailData.orderNo ) {
  2675. this.$message.error('请选择工单或者派工单');
  2676. return false
  2677. }
  2678. if (!this.orderDetailData.itemNo) {
  2679. this.$message.error('请选择工序');
  2680. return false
  2681. }
  2682. /*//校验如果是BOM物料的话领料数量不能大于工单数量
  2683. if (this.orderDetailData.issureQty > this.orderDetailData.qtyRequired){
  2684. this.$message.error('领取数量不可大于工单/派工数量!');
  2685. return false
  2686. }
  2687. //校验如果是BOM物料的话,领料数量不能大于工单数量
  2688. if ((this.orderDetailData.issureQty + this.orderDetailData.alreadyApplyTotal) > this.orderDetailData.qtyRequired){
  2689. this.$message.error('申请总和不可超出工单/派工数量!');
  2690. return false
  2691. }*/
  2692. }
  2693. if (!this.orderDetailData.needDate) {
  2694. this.$message.error('请选择要求发料时间');
  2695. return false
  2696. }
  2697. if (!this.orderDetailData.issureQty || this.orderDetailData.issureQty <= 0) {
  2698. this.$message.error('请填写领取数量');
  2699. return false
  2700. }
  2701. // 构建API请求参数
  2702. let inData = {
  2703. site: this.currentRow.site,
  2704. bu: this.currentRow.bu,
  2705. notifyNo: this.currentRow.notifyNo,
  2706. materialType: this.orderDetailData.materialType,
  2707. sOOrderNo: this.orderDetailData.orderNo,
  2708. seqNo: this.orderDetailData.seqNo,
  2709. fGPartNo: this.orderDetailData.partNo,
  2710. opsItemNo: this.orderDetailData.itemNo,
  2711. issureQty: this.orderDetailData.issureQty,
  2712. needDate: this.orderDetailData.needDate,
  2713. outWorkOrderFlag: 'N',
  2714. username: this.$store.state.user.name,
  2715. // 扩展字段
  2716. itemDesc: this.orderDetailData.itemDesc,
  2717. partDesc: this.orderDetailData.partDesc,
  2718. resourceDesc: this.orderDetailData.resourceDesc,
  2719. resourceId: this.orderDetailData.resourceId,
  2720. workCenterNo: this.orderDetailData.workCenterNo,
  2721. qtyrequired: this.orderDetailData.qtyRequired
  2722. }
  2723. // 调用API保存派工单数据
  2724. saveIssueNoOrderDetail(inData).then(({data}) => {
  2725. if (data && data.code === 0) {
  2726. this.$message({
  2727. message: '保存成功',
  2728. type: 'success',
  2729. duration: 1500,
  2730. onClose: () => {}
  2731. })
  2732. // 关闭模态框
  2733. this.saveOrderDetailFlag = false
  2734. // 刷新当前标签页数据
  2735. this.refreshCurrentTabTable()
  2736. // 清空表单数据
  2737. this.orderDetailData = {
  2738. orderNo: '',
  2739. seqNo: '',
  2740. operationNo: '',
  2741. locationNo: '',
  2742. qtyRequired: '',
  2743. issureQty: 0,
  2744. partDesc: '',
  2745. partNo: '',
  2746. resourceId: '',
  2747. resourceDesc: '',
  2748. itemDesc: '',
  2749. itemNo: 0,
  2750. workCenterNo: '',
  2751. needDate: '',
  2752. materialType: 'BOM物料',
  2753. alreadyApplyTotal: 0
  2754. }
  2755. } else {
  2756. this.$alert(data.msg || '保存失败', '错误', {
  2757. confirmButtonText: '确定'
  2758. })
  2759. }
  2760. }).catch(error => {
  2761. console.error('保存派工单明细失败:', error)
  2762. this.$alert('保存失败,请稍后重试', '错误', {
  2763. confirmButtonText: '确定'
  2764. })
  2765. })
  2766. },
  2767. //导出excel
  2768. async createExportData() {
  2769. this.searchData.limit = -1
  2770. this.searchData.page = 1
  2771. const {data} = await searchNotifyHeader(this.searchData)
  2772. return data.page.list;
  2773. },
  2774. startDownload() {
  2775. // this.exportData = this.dataList
  2776. },
  2777. finishDownload() {
  2778. },
  2779. fields() {
  2780. let json = "{"
  2781. this.columnList1.forEach((item, index) => {
  2782. if (index == this.columnList1.length - 1) {
  2783. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  2784. } else {
  2785. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  2786. }
  2787. })
  2788. json += "}"
  2789. let s = eval("(" + json + ")")
  2790. return s
  2791. },
  2792. tableRowClassName ({row, rowIndex}) {
  2793. if (row.qtyToIssueOriginal<row.qtyToIssue&&new Date(row.needDate)<new Date(this.dayjs().format("YYYY-MM-DD HH:mm"))) {
  2794. return 'error-row'
  2795. }
  2796. return ''
  2797. },
  2798. onMaterialTypeChange(value) {
  2799. // 清空相关字段
  2800. this.orderDetailData.orderNo = '';
  2801. this.orderDetailData.seqNo = '';
  2802. this.orderDetailData.operationNo = '';
  2803. this.orderDetailData.partNo = '';
  2804. this.orderDetailData.partDesc = '';
  2805. this.orderDetailData.locationNo = '';
  2806. this.orderDetailData.resourceId = '';
  2807. this.orderDetailData.resourceDesc = '';
  2808. this.orderDetailData.qtyRequired = '';
  2809. this.orderDetailData.itemDesc = '';
  2810. this.orderDetailData.itemNo = '';
  2811. this.orderDetailData.workCenterNo = '';
  2812. this.orderDetailData.issureQty = 0;
  2813. this.orderDetailData.alreadyApplyTotal = 0;
  2814. },
  2815. //派工单选择部分
  2816. openChooseSOSModal() {
  2817. // 检查是否选择了主表行
  2818. if (!this.currentRow || !this.currentRow.notifyNo) {
  2819. this.$alert('请先选择一条主表记录!', '提示', {
  2820. confirmButtonText: '确定'
  2821. })
  2822. return false
  2823. }
  2824. this.ss_totalPage= 0;
  2825. // 初始化选择派工单数据
  2826. this.chooseSOSData = {
  2827. page: 1,
  2828. limit: 100,
  2829. site: this.currentRow.site,
  2830. bu: this.currentRow.bu,
  2831. orderNo: '',
  2832. seqNo: '',
  2833. sResourceid: '',
  2834. startDate: this.dayjs().format('YYYY-MM-DD'),
  2835. endDate: this.dayjs().format('YYYY-MM-DD'),
  2836. }
  2837. // 清空选择列表
  2838. this.chooseSOSList = []
  2839. // 打开选择模态框
  2840. this.chooseSOSModalFlag = true
  2841. },
  2842. searchSOSRouting() {
  2843. this.chooseSOSData.limit = this.ss_pageSize
  2844. this.chooseSOSData.page = this.ss_pageIndex
  2845. // 调用API查询派工单信息
  2846. getSOScheduledRoutingListForIssureByPaging(this.chooseSOSData).then(({data}) => {
  2847. if (data.code === 0) {
  2848. this.chooseSOSList = data.page.list;
  2849. if (this.chooseSOSList.length === 0) {
  2850. this.$message.warning('未查询到符合条件的派工单');
  2851. }
  2852. this.ss_pageIndex = data.page.currPage
  2853. this.ss_pageSize = data.page.pageSize
  2854. this.ss_totalPage = data.page.totalCount
  2855. } else {
  2856. // 清空选择列表
  2857. this.chooseSOSList = []
  2858. this.$message.error(data.msg || '查询失败');
  2859. }
  2860. }).catch(error => {
  2861. // 清空选择列表
  2862. this.chooseSOSList = []
  2863. console.error('查询派工单失败:', error);
  2864. this.$message.error('查询失败,请稍后重试');
  2865. });
  2866. },
  2867. // 每页数 工单分页信息
  2868. ss_sizeChangeHandle(val) {
  2869. this.ss_pageSize = val
  2870. this.ss_pageIndex = 1
  2871. this.searchSOSRouting()
  2872. },
  2873. // 当前页 工单分页信息
  2874. ss_currentChangeHandle(val) {
  2875. this.ss_pageIndex = val
  2876. this.searchSOSRouting()
  2877. },
  2878. chooseSOS(row) {
  2879. // 关闭选择模态框
  2880. this.chooseSOSModalFlag = false
  2881. // 将选择的数据填入到保存派工单模态框中
  2882. this.orderDetailData.orderNo = row.orderno || '';
  2883. this.orderDetailData.seqNo = row.seqno || '';
  2884. this.orderDetailData.itemNo = row.itemno || '';
  2885. this.orderDetailData.itemDesc = row.itemDesc || '';
  2886. this.orderDetailData.resourceId = row.sResourceid || '';
  2887. this.orderDetailData.resourceDesc = row.resourceDesc || '';
  2888. this.orderDetailData.qtyRequired = row.qtyrequired || '';
  2889. this.orderDetailData.partDesc = row.partDesc || '';
  2890. this.orderDetailData.partNo = row.partNo || '';
  2891. this.orderDetailData.workCenterNo = row.sWorkcenterno || '';
  2892. this.orderDetailData.alreadyApplyTotal = row.alreadyApplyTotal || 0;
  2893. this.orderDetailData.needDate = this.dayjs().format('YYYY-MM-DD HH:mm:ss');
  2894. // 根据物料类型设置
  2895. if (row.issueType === '非BOM物料') {
  2896. this.orderDetailData.materialType = '非BOM物料';
  2897. } else {
  2898. this.orderDetailData.materialType = 'BOM物料';
  2899. }
  2900. this.$message.success('选择派工单成功,数据已填入表单');
  2901. },
  2902. //工单选择部分
  2903. // 打开选择工单模态框
  2904. openChooseOrderModal() {
  2905. // 检查是否选择了主表行
  2906. if (!this.currentRow || !this.currentRow.notifyNo) {
  2907. this.$alert('请先选择一条主表记录!', '提示', {
  2908. confirmButtonText: '确定'
  2909. })
  2910. return false
  2911. }
  2912. this.co_totalPage= 0;
  2913. // 初始化选择工单数据
  2914. this.chooseOrderData = {
  2915. page: 1,
  2916. limit: 100,
  2917. site: this.currentRow.site,
  2918. buNo: this.currentRow.bu,
  2919. user: this.$store.state.user.name,
  2920. orderNo: '',
  2921. statusList: ['已下达', '已计划', '已排产'],
  2922. date3: this.dayjs().format('YYYY-MM-DD'),
  2923. date4: this.dayjs().format('YYYY-MM-DD'),
  2924. }
  2925. // 清空选择列表
  2926. this.chooseOrderList = []
  2927. // 打开选择模态框
  2928. this.chooseOrderModalFlag = true
  2929. },
  2930. // 查询工单信息
  2931. searchOrder() {
  2932. this.chooseOrderData.limit = this.co_pageSize
  2933. this.chooseOrderData.page = this.co_pageIndex
  2934. searchShopOrderByPaging(this.chooseOrderData).then(({data}) => {
  2935. if (data.code === 0) {
  2936. this.chooseOrderList = data.page.list;
  2937. if (this.chooseOrderList.length === 0) {
  2938. this.$message.warning('未查询到符合条件的工单');
  2939. }
  2940. this.co_pageIndex = data.page.currPage
  2941. this.co_pageSize = data.page.pageSize
  2942. this.co_totalPage = data.page.totalCount
  2943. } else {
  2944. this.chooseOrderList = [];
  2945. this.$message.error(data.msg || '查询失败');
  2946. }
  2947. }).catch(error => {
  2948. this.chooseOrderList = [];
  2949. console.error('查询工单失败:', error);
  2950. this.$message.error('查询失败,请稍后重试');
  2951. });
  2952. },
  2953. // 每页数 工单分页信息
  2954. co_sizeChangeHandle(val) {
  2955. this.co_pageSize = val
  2956. this.co_pageIndex = 1
  2957. this.searchOrder()
  2958. },
  2959. // 当前页 工单分页信息
  2960. co_currentChangeHandle(val) {
  2961. this.co_pageIndex = val
  2962. this.searchOrder()
  2963. },
  2964. // 选择工单
  2965. chooseOrder(row) {
  2966. // 关闭选择模态框
  2967. this.chooseOrderModalFlag = false
  2968. // 将选择的数据填入到保存派工单模态框中
  2969. this.orderDetailData.orderNo = row.orderNo || '';
  2970. this.orderDetailData.partNo = row.partNo || '';
  2971. this.orderDetailData.partDesc = row.partDescription || '';
  2972. this.orderDetailData.qtyRequired = row.lotSize || '';
  2973. this.orderDetailData.alreadyApplyTotal = row.alreadyApplyTotal || 0;
  2974. // 清空相关字段
  2975. this.orderDetailData.seqNo = '';
  2976. this.orderDetailData.operationNo = '';
  2977. this.orderDetailData.locationNo = '';
  2978. },
  2979. //工序选择部分
  2980. // 打开选择工序模态框
  2981. openChooseOperationModal() {
  2982. // 检查是否选择了工单
  2983. if (!this.orderDetailData.orderNo) {
  2984. this.$alert('请先选择工单!', '提示', {
  2985. confirmButtonText: '确定'
  2986. })
  2987. return false
  2988. }
  2989. // 初始化选择工序数据
  2990. this.chooseOperationData = {
  2991. orderNo: this.orderDetailData.orderNo,
  2992. site: this.currentRow.site,
  2993. }
  2994. // 清空选择列表
  2995. this.chooseOperationList = []
  2996. //
  2997. this.searchOperation();
  2998. // 打开选择模态框
  2999. this.chooseOperationModalFlag = true
  3000. },
  3001. // 查询工序信息
  3002. searchOperation() {
  3003. // 调用API查询工序信息
  3004. getRouteInShopOrder(this.chooseOperationData).then(({data}) => {
  3005. if (data.code === 0) {
  3006. this.chooseOperationList = data.dataList;
  3007. if (this.chooseOperationList.length === 0) {
  3008. this.$message.warning('未查询到符合条件的工序');
  3009. }
  3010. } else {
  3011. // 清空选择列表
  3012. this.chooseOperationList = [];
  3013. this.$message.error(data.msg || '查询失败');
  3014. }
  3015. }).catch(error => {
  3016. // 清空选择列表
  3017. this.chooseOperationList = [];
  3018. console.error('查询工序失败:', error);
  3019. this.$message.error('查询失败,请稍后重试');
  3020. });
  3021. },
  3022. // 选择工序
  3023. chooseOperation(row) {
  3024. // 关闭选择模态框
  3025. this.chooseOperationModalFlag = false
  3026. // 将选择的数据填入到保存派工单模态框中
  3027. this.orderDetailData.itemDesc = row.operationDesc || '';
  3028. this.orderDetailData.itemNo = row.itemNo || '';
  3029. this.orderDetailData.workCenterNo = row.workCenterNo || '';
  3030. this.$message.success('操作成功');
  3031. },
  3032. //机台选择部分
  3033. // 打开选择机台模态框
  3034. openChooseResourceModal() {
  3035. // 检查是否选择了工单
  3036. if (!this.orderDetailData.orderNo) {
  3037. this.$alert('请先选择工单!', '提示', {
  3038. confirmButtonText: '确定'
  3039. })
  3040. return false
  3041. }
  3042. // 初始化选择机台数据
  3043. this.chooseResourceData = {
  3044. site: this.currentRow.site,
  3045. workCenterNo: this.orderDetailData.workCenterNo,
  3046. resourceID: '',
  3047. resourceDesc: '',
  3048. }
  3049. // 清空选择列表
  3050. this.chooseResourceList = []
  3051. this.searchResource();
  3052. // 打开选择模态框
  3053. this.chooseResourceModalFlag = true
  3054. },
  3055. // 查询机台信息
  3056. searchResource() {
  3057. // 调用API查询机台信息
  3058. searchAllResource(this.chooseResourceData).then(({data}) => {
  3059. if (data.code === 0) {
  3060. this.chooseResourceList = data.rows;
  3061. if (this.chooseResourceList.length === 0) {
  3062. this.$message.warning('未查询到符合条件的机台');
  3063. }
  3064. } else {
  3065. // 清空选择列表
  3066. this.chooseResourceList = [];
  3067. this.$message.error(data.msg || '查询失败');
  3068. }
  3069. }).catch(error => {
  3070. // 清空选择列表
  3071. this.chooseResourceList = [];
  3072. console.error('查询机台失败:', error);
  3073. this.$message.error('查询失败,请稍后重试');
  3074. });
  3075. },
  3076. // 选择机台
  3077. chooseResource(row) {
  3078. // 关闭选择模态框
  3079. this.chooseResourceModalFlag = false
  3080. // 将选择的数据填入到保存派工单模态框中
  3081. this.orderDetailData.resourceId = row.resourceId || '';
  3082. this.orderDetailData.resourceDesc = row.resourceDesc || '';
  3083. this.$message.success('操作成功');
  3084. },
  3085. //非BOM物料选择部分
  3086. // 打开选择物料模态框
  3087. openChoosePartModal() {
  3088. // 检查是否选择了主表行
  3089. if (!this.currentRow || !this.currentRow.notifyNo) {
  3090. this.$alert('请先选择一条主表记录!', '提示', {
  3091. confirmButtonText: '确定'
  3092. })
  3093. return false
  3094. }
  3095. // 初始化选择物料数据
  3096. this.choosePartData = {
  3097. site: this.currentRow.site,
  3098. sourceBu: this.currentRow.bu,
  3099. partNo: '',
  3100. partDesc: '',
  3101. spec: '',
  3102. }
  3103. // 清空选择列表
  3104. this.choosePartList = []
  3105. // 打开选择模态框
  3106. this.choosePartModalFlag = true
  3107. this.searchPartModel()
  3108. },
  3109. // 查询物料信息
  3110. searchPartModel() {
  3111. this.choosePartData.limit = this.pp_pageSize
  3112. this.choosePartData.page = this.pp_pageIndex
  3113. // 调用API查询物料信息
  3114. getPartListByPaging(this.choosePartData).then(({data}) => {
  3115. if (data.code === 0) {
  3116. this.choosePartList = data.page.list;
  3117. if (this.choosePartList.length === 0) {
  3118. this.$message.warning('未查询到符合条件的物料');
  3119. }
  3120. this.pp_pageIndex = data.page.currPage
  3121. this.pp_pageSize = data.page.pageSize
  3122. this.pp_totalPage = data.page.totalCount
  3123. } else {
  3124. // 清空选择列表
  3125. this.choosePartList = []
  3126. this.$message.error(data.msg || '查询失败');
  3127. }
  3128. }).catch(error => {
  3129. // 清空选择列表
  3130. this.choosePartList = []
  3131. console.error('查询物料失败:', error);
  3132. this.$message.error('查询失败,请稍后重试');
  3133. });
  3134. },
  3135. // 每页数 工单分页信息
  3136. pp_sizeChangeHandle(val) {
  3137. this.pp_pageSize = val
  3138. this.pp_pageIndex = 1
  3139. this.searchPartModel()
  3140. },
  3141. // 当前页 工单分页信息
  3142. pp_currentChangeHandle(val) {
  3143. this.pp_pageIndex = val
  3144. this.searchPartModel()
  3145. },
  3146. // 选择物料
  3147. choosePart(row) {
  3148. // 关闭选择模态框
  3149. this.choosePartModalFlag = false
  3150. // 将选择的数据填入到保存派工单模态框中
  3151. this.orderDetailData.partNo = row.partNo || '';
  3152. this.orderDetailData.partDesc = row.partDesc || '';
  3153. this.orderDetailData.materialType = '非BOM物料';
  3154. this.$message.success('选择物料成功,数据已填入表单');
  3155. },
  3156. //下达申请单方法
  3157. async xiadaNotifyModel(row){
  3158. // 设置当前行为要下达的行
  3159. this.currentRow = JSON.parse(JSON.stringify(row));
  3160. // 先刷新子表数据,确保获取最新数据
  3161. await this.refreshAllSubTables();
  3162. console.log('申请单明细数据:', this.dataList2);
  3163. console.log('材料明细数据:', this.dataList3);
  3164. if(this.dataList2.length==0 || this.dataList3.length==0){
  3165. this.$alert('没有明细记录无法下达!!', '提示', {
  3166. confirmButtonText: '确定'
  3167. })
  3168. return false
  3169. }
  3170. xiadaNotify(row).then(({data})=>{
  3171. if (data.code === 0) {
  3172. //刷新主表数据
  3173. this.searchTable().then(() => { // 等刷新完成
  3174. const foundRow = this.dataList.find(item => item.notifyNo === row.notifyNo);
  3175. if (foundRow) {
  3176. this.currentRow = JSON.parse(JSON.stringify(foundRow));
  3177. this.$nextTick(() => {
  3178. this.$refs.mainTable.setCurrentRow(foundRow);
  3179. });
  3180. }
  3181. });
  3182. this.$message.success( '操作成功')
  3183. }else {
  3184. this.$alert(data.msg, '错误', {
  3185. confirmButtonText: '确定'
  3186. })
  3187. }
  3188. })
  3189. },
  3190. // 刷新所有子表数据
  3191. async refreshAllSubTables() {
  3192. if(!this.currentRow || !this.currentRow.notifyNo) {
  3193. console.warn('当前行数据为空,无法刷新子表数据');
  3194. return;
  3195. }
  3196. try {
  3197. // 并行请求所有子表数据
  3198. const [detailData, materialData] = await Promise.all([
  3199. searchNotifyOrderList(this.currentRow),
  3200. searchNotifyMaterialList(this.currentRow)
  3201. ]);
  3202. // 更新申请单明细数据
  3203. if (detailData.data && detailData.data.code == 0) {
  3204. this.dataList2 = detailData.data.rows;
  3205. } else {
  3206. this.dataList2 = [];
  3207. }
  3208. // 更新材料明细数据
  3209. if (materialData.data && materialData.data.code == 0) {
  3210. this.dataList3 = materialData.data.rows;
  3211. } else {
  3212. this.dataList3 = [];
  3213. }
  3214. } catch (error) {
  3215. console.error('刷新子表数据失败:', error);
  3216. this.$message.error('刷新子表数据失败,请稍后重试');
  3217. }
  3218. },
  3219. editNotifyMaterialFun(row){
  3220. // 设置当前行为要编辑的行
  3221. this.currentRow = JSON.parse(JSON.stringify(row));
  3222. editNotifyMaterial(row).then(({data})=>{
  3223. if (data.code === 0) {
  3224. //刷新主表数据
  3225. this.searchTable().then(() => { // 等刷新完成
  3226. const foundRow = this.dataList.find(item => item.notifyNo === row.notifyNo);
  3227. if (foundRow) {
  3228. this.currentRow = JSON.parse(JSON.stringify(foundRow));
  3229. this.$nextTick(() => {
  3230. this.$refs.mainTable.setCurrentRow(foundRow);
  3231. });
  3232. }
  3233. });
  3234. this.$message.success( '操作成功')
  3235. }else {
  3236. this.$alert(data.msg, '错误', {
  3237. confirmButtonText: '确定'
  3238. })
  3239. }
  3240. })
  3241. },
  3242. // 判断当前状态是否可编辑
  3243. isEditableStatus() {
  3244. if (!this.currentRow || !this.currentRow.status) {
  3245. return false;
  3246. }
  3247. return this.currentRow.status === '草稿' || this.currentRow.status === '编辑中';
  3248. },
  3249. },
  3250. }
  3251. </script>
  3252. <style scoped>
  3253. .disabled {
  3254. cursor: not-allowed !important;
  3255. color: #C0C4CC !important;
  3256. pointer-events: none;
  3257. }
  3258. .text-right >>> .el-input__inner {
  3259. text-align: right !important;
  3260. }
  3261. .text-right >>> .el-input-number__input {
  3262. text-align: right !important;
  3263. }
  3264. .single-line-multi-select >>> .el-select__tags {
  3265. display: flex;
  3266. flex-wrap: nowrap;
  3267. overflow: hidden;
  3268. white-space: nowrap;
  3269. max-width: 100%;
  3270. }
  3271. .single-line-multi-select >>> .el-tag {
  3272. flex-shrink: 0;
  3273. max-width: 100px;
  3274. overflow: hidden;
  3275. text-overflow: ellipsis;
  3276. white-space: nowrap;
  3277. }
  3278. .single-line-multi-select >>> .el-select__input {
  3279. flex-shrink: 0;
  3280. min-width: 30px;
  3281. }
  3282. .disabled-link {
  3283. cursor: not-allowed !important;
  3284. color: #C0C4CC !important;
  3285. pointer-events: none;
  3286. }
  3287. .disabled-text {
  3288. color: #C0C4CC !important;
  3289. cursor: not-allowed !important;
  3290. }
  3291. </style>