|  |  | @ -35,12 +35,14 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="收货仓库:" prop="locStorageCode"> |  |  |  |             <el-form-item label="收货仓库:" prop="locStorageCode"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.invName" placeholder="收货仓库信息" style="width: 90%" |  |  |  |               <el-select v-model="formData.invName" placeholder="收货仓库信息" style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="true" clearable> |  |  |  |                          :disabled="true" clearable | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               > | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |                   v-for="item in subInvList" |  |  |  |                   v-for="item in subInvList" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :key="item.name" |  |  |  |                   :key="item.name" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :label="item.name" |  |  |  |                   :label="item.name" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :value="item.code"> |  |  |  |                   :value="item.code" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <span style="float: left">{{ item.name }}</span> |  |  |  |                   <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-option> |  |  |  |                 </el-option> | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-select> |  |  |  |               </el-select> | 
			
		
	
	
		
		
			
				
					|  |  | @ -67,40 +69,27 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row> |  |  |  |         <el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="24"> |  |  |  |           <el-col :span="24"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="订单说明:" prop="billNo"> |  |  |  |             <el-form-item label="订单说明:" prop="billNo"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-input v-model="formData.remark" style="width: 90%" :disabled="true" auto-complete="off" |  |  |  |               <el-input v-model="formData.remark" style="width: 87%" :disabled="true" auto-complete="off" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         type="textarea" autosize></el-input> |  |  |  |                         type="textarea" autosize | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <!--                        <el-form-item>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <!--                            <el-checkbox v-model="formData.autoPurchase">是否生成采购入库单</el-checkbox>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <!--                        </el-form-item>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-row> |  |  |  |         </el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row v-show="formData.autoPurchase"> |  |  |  |         <el-row> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="入库仓库:" prop="locStorageCode"> |  |  |  |             <el-form-item> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.targetSubInv" placeholder="入库仓库信息" style="width: 90%" |  |  |  |               <el-checkbox v-model="formData.autoPurchase">是否生成采购入库单</el-checkbox> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                          @change="targetInvChange" clearable> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   v-for="item in tarSubList" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :key="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :label="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :value="item.code"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <span style="float: left">{{ item.name }}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-select> |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11" v-show="formData.autoPurchase"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="入库单据类型:" class="query-form-item" prop="targetBillAction"> |  |  |  |             <el-form-item label="入库单据类型:" class="query-form-item" prop="targetBillAction"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.targetBillAction" placeholder="请选择单据类型" style="width: 90%"> |  |  |  |               <el-select v-model="formData.targetBillAction" placeholder="请选择单据类型" style="width: 90%"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |                   v-for="item in busTypes" |  |  |  |                   v-for="item in busTypes" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :key="item.name" |  |  |  |                   :key="item.name" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :label="item.name" |  |  |  |                   :label="item.name" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :value="item.action"> |  |  |  |                   :value="item.action" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <span style="float: left">{{ item.name }}</span> |  |  |  |                   <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-option> |  |  |  |                 </el-option> | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-select> |  |  |  |               </el-select> | 
			
		
	
	
		
		
			
				
					|  |  | @ -113,7 +102,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-card> |  |  |  |       <el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border |  |  |  |         <el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border | 
			
		
	
		
		
			
				
					
					|  |  |  |                   highlight-current-row max-height="300" height="300" ref="multipleTable"> |  |  |  |                   highlight-current-row max-height="300" height="300" ref="multipleTable" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         > | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="序号" type="index" width="50"></el-table-column> |  |  |  |           <el-table-column label="序号" type="index" width="50"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="物资名称" prop="productName" show-overflow-tooltip width="150"></el-table-column> |  |  |  |           <el-table-column label="物资名称" prop="productName" show-overflow-tooltip width="150"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="规格型号" prop="spec" show-overflow-tooltip width="160"></el-table-column> |  |  |  |           <el-table-column label="规格型号" prop="spec" show-overflow-tooltip width="160"></el-table-column> | 
			
		
	
	
		
		
			
				
					|  |  | @ -121,16 +111,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <template slot-scope="scope"> |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-input size="small" v-model="scope.row.count" |  |  |  |               <el-input size="small" v-model="scope.row.count" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         placeholder="请输入数量" style="width: 80%" |  |  |  |                         placeholder="请输入数量" style="width: 80%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         type='number' |  |  |  |                         type="number" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         @change="tableCountChange(scope.row)" |  |  |  |                         @change="tableCountChange(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         :disabled="scope.row.index !== selectedIndex" |  |  |  |                         :disabled="scope.row.index !== selectedIndex" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         oninput="value=value.replace(/[^\d]/g,'')"></el-input> |  |  |  |                         oninput="value=value.replace(/[^\d]/g,'')" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </template> |  |  |  |             </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-table-column> |  |  |  |           </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="计量单位" prop="measname" show-overflow-tooltip width="100"></el-table-column> |  |  |  |           <el-table-column label="计量单位" prop="measname" show-overflow-tooltip width="100"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip width="160"></el-table-column> |  |  |  |           <el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip width="160"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip="true" |  |  |  |           <el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip="true" | 
			
		
	
		
		
			
				
					
					|  |  |  |                            width="160"></el-table-column> |  |  |  |                            width="160" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           ></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-table> |  |  |  |         </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </el-card> |  |  |  |       </el-card> | 
			
		
	
	
		
		
			
				
					|  |  | @ -143,7 +135,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       :close-on-press-escape="false" |  |  |  |       :close-on-press-escape="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |       width="80%" |  |  |  |       width="80%" | 
			
		
	
		
		
			
				
					
					|  |  |  |       v-if="selectProductVisible" |  |  |  |       v-if="selectProductVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |       :append-to-body='true' |  |  |  |       :append-to-body="true" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     > |  |  |  |     > | 
			
		
	
		
		
			
				
					
					|  |  |  |       <purPlanProducts |  |  |  |       <purPlanProducts | 
			
		
	
		
		
			
				
					
					|  |  |  |         :closeDialog="closeDialogC2" |  |  |  |         :closeDialog="closeDialogC2" | 
			
		
	
	
		
		
			
				
					|  |  | @ -155,42 +147,42 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <script> |  |  |  | <script> | 
			
		
	
		
		
			
				
					
					|  |  |  | import draggable from "vuedraggable"; |  |  |  | import draggable from 'vuedraggable' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import purPlanProducts from "@/views/purchase/purPlan/purOrderSelectProduct"; |  |  |  | import purPlanProducts from '@/views/purchase/purPlan/purOrderSelectProduct' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import {auditOrder, dealOrder, delOrderDetail, listOrderDetail} from "@/api/purchase/purOrder"; |  |  |  | import { auditOrder, dealOrder, delOrderDetail, listOrderDetail } from '@/api/purchase/purOrder' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import {filterAllByUser, selectByCode} from "@/api/system/invWarehouse"; |  |  |  | import { filterAllByUser, selectByCode } from '@/api/system/invWarehouse' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import {filterSubByInv} from "@/api/system/invSubWarehouse"; |  |  |  | import { filterSubByInv } from '@/api/system/invSubWarehouse' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import {getLocalJoinByUser} from "@/api/basic/busType"; |  |  |  | import { getLocalJoinByUser } from '@/api/basic/busType' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export default { |  |  |  | export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   name: "idQuery", |  |  |  |   name: 'idQuery', | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   props: { |  |  |  |   props: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeDialog: { |  |  |  |     closeDialog: { | 
			
		
	
		
		
			
				
					
					|  |  |  |       type: Function, |  |  |  |       type: Function, | 
			
		
	
		
		
			
				
					
					|  |  |  |       required: true, |  |  |  |       required: true | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     idQuery: { |  |  |  |     idQuery: { | 
			
		
	
		
		
			
				
					
					|  |  |  |       type: Object, |  |  |  |       type: Object, | 
			
		
	
		
		
			
				
					
					|  |  |  |       required: true, |  |  |  |       required: true | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     editType: { |  |  |  |     editType: { | 
			
		
	
		
		
			
				
					
					|  |  |  |       type: Object, |  |  |  |       type: Object, | 
			
		
	
		
		
			
				
					
					|  |  |  |       required: true, |  |  |  |       required: true | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  |       code: "", |  |  |  |       code: '', | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       query: { |  |  |  |       query: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         orderIdFk: "", |  |  |  |         orderIdFk: '', | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         page: 1, |  |  |  |         page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 10, |  |  |  |         limit: 10 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       formData: { |  |  |  |       formData: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         id: null, |  |  |  |         id: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         billNo: null, |  |  |  |         billNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         billDate: "", |  |  |  |         billDate: '', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         remark: "", |  |  |  |         remark: '', | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         deptCode: null, |  |  |  |         deptCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         locStorageCode: null, |  |  |  |         locStorageCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         invWarehouseCode: null, |  |  |  |         invWarehouseCode: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -198,7 +190,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         autoPurchase: false, |  |  |  |         autoPurchase: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetInv: 1000, |  |  |  |         targetInv: 1000, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetSubInv: null, |  |  |  |         targetSubInv: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetBillAction: null, |  |  |  |         targetBillAction: null | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       formRules: {}, |  |  |  |       formRules: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |       codeArray: [], |  |  |  |       codeArray: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -210,13 +202,13 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       deleteLoading: false, |  |  |  |       deleteLoading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       orderNo: null, |  |  |  |       orderNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       statusMap: { |  |  |  |       statusMap: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         1: "草稿", |  |  |  |         1: '草稿', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         2: "未审核", |  |  |  |         2: '未审核', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         3: "已审核", |  |  |  |         3: '已审核' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       typeMap: { |  |  |  |       typeMap: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         1: "预入库", |  |  |  |         1: '预入库', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         2: "普通采购", |  |  |  |         2: '普通采购' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       orderEditor: true, |  |  |  |       orderEditor: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       sOptions: [], |  |  |  |       sOptions: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -225,71 +217,70 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       sLoading: false, |  |  |  |       sLoading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       busTypes: [], |  |  |  |       busTypes: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       currentRow: {}, |  |  |  |       currentRow: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |       selectedIndex: "", |  |  |  |       selectedIndex: '', | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       selectProductVisible: false, |  |  |  |       selectProductVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       thisData: {}, |  |  |  |       thisData: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |       subInvList: [], |  |  |  |       subInvList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       tarSubList: [], |  |  |  |       tarSubList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       invQueryData: {}, |  |  |  |       invQueryData: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |       showSup: false, |  |  |  |       showSup: false | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: { |  |  |  |   components: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     draggable, |  |  |  |     draggable, | 
			
		
	
		
		
			
				
					
					|  |  |  |     purPlanProducts, |  |  |  |     purPlanProducts | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     dealOrder(status) { |  |  |  |     dealOrder(status) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.dealStatus = status; |  |  |  |       this.formData.dealStatus = status | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = { |  |  |  |       let tQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         purOrderEntity: this.formData, |  |  |  |         purOrderEntity: this.formData, | 
			
		
	
		
		
			
				
					
					|  |  |  |         subErpOrders: this.codeArray, |  |  |  |         subErpOrders: this.codeArray, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         autoPurchase: this.formData.autoPurchase, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         targetBillAction:this.formData.targetBillAction, | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       dealOrder(tQuery) |  |  |  |       dealOrder(tQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then(response => { |  |  |  |         .then(response => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           if (response.code === 20000) { |  |  |  |           if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.success("处理成功"); |  |  |  |             this.$message.success('处理成功') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.closeDialog(true); |  |  |  |             this.closeDialog(true) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.error(response.message); |  |  |  |             this.$message.error(response.message) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     saveOrder(status) { |  |  |  |     saveOrder(status) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tip = ""; |  |  |  |       let tip = '' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if (status == "1") { |  |  |  |       if (status == '1') { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if(this.formData.dealStatus == 1){ |  |  |  |         if (this.formData.dealStatus == 1) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           tip = "该单据已配货,是否继续配货?"; |  |  |  |           tip = '该单据已配货,是否继续配货?' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         }else { |  |  |  |         } else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           tip = "是否确定开始配货?"; |  |  |  |           tip = '是否确定开始配货?' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } else { |  |  |  |       } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |         tip = "是否确定作废采购订单?"; |  |  |  |         tip = '是否确定作废采购订单?' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$confirm(tip, "提示", { |  |  |  |       this.$confirm(tip, '提示', { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         confirmButtonText: "确定", |  |  |  |         confirmButtonText: '确定', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         cancelButtonText: "取消", |  |  |  |         cancelButtonText: '取消', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         type: "warning", |  |  |  |         type: 'warning' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }).then(() => { |  |  |  |       }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.dealOrder(status); |  |  |  |         this.dealOrder(status) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }).catch(() => { |  |  |  |       }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.loading = false; |  |  |  |         this.loading = false | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     submitFunction(status) { |  |  |  |     submitFunction(status) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tMessage = status === '1' ? '保存' : '提交'; |  |  |  |       let tMessage = status === '1' ? '保存' : '提交' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.loading = true; |  |  |  |       this.loading = true | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = { |  |  |  |       let tQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         autoPurchase: this.formData.autoPurchase, |  |  |  |         autoPurchase: this.formData.autoPurchase, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetSubInv: this.formData.targetSubInv, |  |  |  |         targetSubInv: this.formData.targetSubInv, | 
			
		
	
	
		
		
			
				
					|  |  | @ -297,205 +288,203 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetBillAction: this.formData.targetBillAction, |  |  |  |         targetBillAction: this.formData.targetBillAction, | 
			
		
	
		
		
			
				
					
					|  |  |  |         editStatus: status, |  |  |  |         editStatus: status, | 
			
		
	
		
		
			
				
					
					|  |  |  |         purOrderEntity: this.formData, |  |  |  |         purOrderEntity: this.formData, | 
			
		
	
		
		
			
				
					
					|  |  |  |         subErpOrders: this.codeArray, |  |  |  |         subErpOrders: this.codeArray | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       auditOrder(tQuery) |  |  |  |       auditOrder(tQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then(response => { |  |  |  |         .then(response => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           if (response.code === 20000) { |  |  |  |           if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.success(tMessage + "成功"); |  |  |  |             this.$message.success(tMessage + '成功') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.closeDialog(true); |  |  |  |             this.closeDialog(true) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.error(response.message); |  |  |  |             this.$message.error(response.message) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     selectProductFunction() { |  |  |  |     selectProductFunction() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectProductVisible = true; |  |  |  |       this.selectProductVisible = true | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeDialogC2(rData) { |  |  |  |     closeDialogC2(rData) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectProductVisible = false; |  |  |  |       this.selectProductVisible = false | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.thisData = {}; |  |  |  |       this.thisData = {} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isNotBlank(rData)) { |  |  |  |       if (this.$isNotBlank(rData)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.codeArray = []; |  |  |  |         this.codeArray = [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         rData.forEach((obj, index) => { |  |  |  |         rData.forEach((obj, index) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.codeArray.unshift(obj); |  |  |  |           this.codeArray.unshift(obj) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.$refs.multipleTable.setCurrentRow(this.codeArray[0]); |  |  |  |         this.$refs.multipleTable.setCurrentRow(this.codeArray[0]) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.currentRow = this.codeArray[0]; |  |  |  |         this.currentRow = this.codeArray[0] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.selectedIndex = 0; |  |  |  |         this.selectedIndex = 0 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     rowChange(val) { |  |  |  |     rowChange(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.currentRow = val; |  |  |  |       this.currentRow = val | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectedIndex = val.index; |  |  |  |       this.selectedIndex = val.index | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     tableCountChange(row) { |  |  |  |     tableCountChange(row) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isNotBlank(row)) { |  |  |  |       if (this.$isNotBlank(row)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         // row.count = row.reCount; |  |  |  |         // row.count = row.reCount; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     tableRowClassName({row, rowIndex}) { |  |  |  |     tableRowClassName({ row, rowIndex }) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       row.index = rowIndex; |  |  |  |       row.index = rowIndex | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     // 刷新表单 |  |  |  |     // 刷新表单 | 
			
		
	
		
		
			
				
					
					|  |  |  |     resetForm() { |  |  |  |     resetForm() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$refs["dataForm"]) { |  |  |  |       if (this.$refs['dataForm']) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         // 清空验证信息表单 |  |  |  |         // 清空验证信息表单 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$refs["dataForm"].clearValidate(); |  |  |  |         this.$refs['dataForm'].clearValidate() | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         // 刷新表单 |  |  |  |         // 刷新表单 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$refs["dataForm"].resetFields(); |  |  |  |         this.$refs['dataForm'].resetFields() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.getList(); |  |  |  |         this.getList() | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     deleteCodeArray(index, row) { |  |  |  |     deleteCodeArray(index, row) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", { |  |  |  |       this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         confirmButtonText: "确定", |  |  |  |         confirmButtonText: '确定', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         cancelButtonText: "取消", |  |  |  |         cancelButtonText: '取消', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         type: "warning", |  |  |  |         type: 'warning' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }).then(() => { |  |  |  |       }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$refs.multipleTable.setCurrentRow(); |  |  |  |         this.$refs.multipleTable.setCurrentRow() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.currentRow = {}; |  |  |  |         this.currentRow = {} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.selectedIndex = ""; |  |  |  |         this.selectedIndex = '' | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (this.orderEditor) { |  |  |  |         if (this.orderEditor) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.detailLoading = true; |  |  |  |           this.detailLoading = true | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           if (this.$isNotBlank(row.id)) { |  |  |  |           if (this.$isNotBlank(row.id)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             delOrderDetail(row.id) |  |  |  |             delOrderDetail(row.id) | 
			
		
	
		
		
			
				
					
					|  |  |  |               .then(response => { |  |  |  |               .then(response => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.detailLoading = false; |  |  |  |                 this.detailLoading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 if (response.code === 20000) { |  |  |  |                 if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                   this.$message.success(response.data); |  |  |  |                   this.$message.success(response.data) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                   // this.getStockOrderDetailList(); |  |  |  |                   // this.getStockOrderDetailList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                   this.codeArray.splice(index, 1); |  |  |  |                   this.codeArray.splice(index, 1) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 } else { |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                   this.$message.error(response.message); |  |  |  |                   this.$message.error(response.message) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |               }) |  |  |  |               }) | 
			
		
	
		
		
			
				
					
					|  |  |  |               .catch(() => { |  |  |  |               .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.detailLoading = false; |  |  |  |                 this.detailLoading = false | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               }) |  |  |  |               }) | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.success('删除成功'); |  |  |  |             this.$message.success('删除成功') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.codeArray.splice(index, 1); |  |  |  |             this.codeArray.splice(index, 1) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$message.success('删除成功'); |  |  |  |           this.$message.success('删除成功') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.codeArray.splice(index, 1); |  |  |  |           this.codeArray.splice(index, 1) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }).catch(() => { |  |  |  |       }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getStockOrderDetailList() { |  |  |  |     getStockOrderDetailList() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.loading = true; |  |  |  |       this.loading = true | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       listOrderDetail(this.query) //查找该单号下的所有条码 |  |  |  |       listOrderDetail(this.query) //查找该单号下的所有条码 | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           console.log(response) |  |  |  |           console.log(response) | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.codeArray = response.data.list || []; |  |  |  |           this.codeArray = response.data.list || [] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.total = response.data.total || 0; |  |  |  |           this.total = response.data.total || 0 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.loading = false; |  |  |  |           this.loading = false | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.list = []; |  |  |  |           this.list = [] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.total = 0; |  |  |  |           this.total = 0 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     findSubInvs() { |  |  |  |     findSubInvs() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.subInvList = []; |  |  |  |       this.subInvList = [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         pcode: this.formData.locStorageCode |  |  |  |         pcode: this.formData.locStorageCode | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       filterSubByInv(query) |  |  |  |       filterSubByInv(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.subInvList = response.data || []; |  |  |  |           this.subInvList = response.data || [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           if (this.subInvList != null && this.subInvList.length == 1) { |  |  |  |           if (this.subInvList != null && this.subInvList.length == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.invWarehouseCode = this.subInvList[0].code; |  |  |  |             this.formData.invWarehouseCode = this.subInvList[0].code | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     findTargetSubInvs() { |  |  |  |     findTargetSubInvs() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.formData.targetSubInv != null && this.tarSubList.length > 0) { |  |  |  |       if (this.formData.targetSubInv != null && this.tarSubList.length > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.targetDeptCode = this.subInvList.find(item => item.code == this.formData.targetSubInv).parentId |  |  |  |         this.formData.targetDeptCode = this.subInvList.find(item => item.code == this.formData.targetSubInv).parentId | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.tarSubList = []; |  |  |  |       this.tarSubList = [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         pcode: 1000 |  |  |  |         pcode: 1000 | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       filterSubByInv(query) |  |  |  |       filterSubByInv(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.tarSubList = response.data || []; |  |  |  |           this.tarSubList = response.data || [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           if (this.tarSubList != null && this.tarSubList.length == 1) { |  |  |  |           if (this.tarSubList != null && this.tarSubList.length == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.targetSubInv = this.tarSubList[0].code; |  |  |  |             this.formData.targetSubInv = this.tarSubList[0].code | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.targetDeptCode = this.tarSubList[0].parentId; |  |  |  |             this.formData.targetDeptCode = this.tarSubList[0].parentId | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.targetInvChange(); |  |  |  |             this.targetInvChange() | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     targetInvChange() { |  |  |  |     targetInvChange() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: this.formData.targetSubInv, |  |  |  |         enable: true, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         enabled: true, |  |  |  |         spUse: true | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         spUse: true, |  |  |  |       } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       getLocalJoinByUser(query) |  |  |  |       getLocalJoinByUser(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.busTypes = response.data.list || []; |  |  |  |           this.busTypes = response.data.list || [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           // this.formData.targetBillAction = this.busTypes[0].localAction; |  |  |  |           // this.formData.targetBillAction = this.busTypes[0].localAction; | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let query1 = { |  |  |  |       let query1 = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: this.formData.targetSubInv, |  |  |  |         code: this.formData.targetSubInv | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       selectByCode(query1) |  |  |  |       selectByCode(query1) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((res) => { |  |  |  |         .then((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (res.code === 20000) { |  |  |  |           if (res.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.targetDeptCode = res.data |  |  |  |             this.formData.targetDeptCode = res.data | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   filters: {}, |  |  |  |   filters: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |   mounted() { |  |  |  |   mounted() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     document.body.ondrop = function (event) { |  |  |  |     document.body.ondrop = function(event) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       event.preventDefault(); |  |  |  |       event.preventDefault() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       event.stopPropagation(); |  |  |  |       event.stopPropagation() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   created() { |  |  |  |   created() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     let supId = this.$store.getters.customerId; |  |  |  |     let supId = this.$store.getters.customerId | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     if (supId == "110") { |  |  |  |     if (supId == '110') { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.showSup = true; |  |  |  |       this.showSup = true | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (this.$isNotBlank(this.idQuery.id)) { |  |  |  |     if (this.$isNotBlank(this.idQuery.id)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.query.limit = 100; |  |  |  |       this.query.limit = 100 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.query.orderIdFk = this.idQuery.id; |  |  |  |       this.query.orderIdFk = this.idQuery.id | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData = this.idQuery.formData; |  |  |  |       this.formData = this.idQuery.formData | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.targetInv = 1000; |  |  |  |       this.formData.targetInv = 1000 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.orderEditor = true; |  |  |  |       this.orderEditor = true | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.sValue = this.formData.corpName; |  |  |  |       this.sValue = this.formData.corpName | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.getStockOrderDetailList(); |  |  |  |       this.getStockOrderDetailList() | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } else { |  |  |  |     } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData = { |  |  |  |       this.formData = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         id: null, |  |  |  |         id: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         billNo: null, |  |  |  |         billNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         billDate: "", |  |  |  |         billDate: '', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         remark: "", |  |  |  |         remark: '', | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         deptCode: null, |  |  |  |         deptCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         locStorageCode: null, |  |  |  |         locStorageCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         invWarehouseCode: null, |  |  |  |         invWarehouseCode: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -503,14 +492,15 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         autoPurchase: false, |  |  |  |         autoPurchase: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetInv: 1000, |  |  |  |         targetInv: 1000, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetSubInv: null, |  |  |  |         targetSubInv: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetBillAction: null, |  |  |  |         targetBillAction: null | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.orderEditor = false; |  |  |  |       this.orderEditor = false | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.findTargetSubInvs(); |  |  |  |     this.findTargetSubInvs() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     this.codeArray = []; |  |  |  |     this.targetInvChange() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |     this.codeArray = [] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  |   } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | </script> |  |  |  | </script> | 
			
		
	
		
		
			
				
					
					|  |  |  | <style> |  |  |  | <style> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |