|  |  |  | @ -3,30 +3,31 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350" | 
			
		
	
		
			
				
					|  |  |  |  |               :row-style="rowStyle" | 
			
		
	
		
			
				
					|  |  |  |  |               border | 
			
		
	
		
			
				
					|  |  |  |  |               ref="multipleTable"> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        type="selection"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        width="55">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |               ref="multipleTable" | 
			
		
	
		
			
				
					|  |  |  |  |     > | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        type="selection"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        width="55">--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column label="序号" type="index" width="55"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |         label="追溯码" | 
			
		
	
		
			
				
					|  |  |  |  |         prop="udiCode" | 
			
		
	
		
			
				
					|  |  |  |  |         prop="code" | 
			
		
	
		
			
				
					|  |  |  |  |         width="280" | 
			
		
	
		
			
				
					|  |  |  |  |         show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |       ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        label="产品通用名"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        prop="productName"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        width="160"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        label="规格型号"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        prop="ggxh"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        width="160"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        label="产品通用名"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        prop="productName"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        width="160"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        label="规格型号"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        prop="ggxh"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        width="160"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |         label="批次号" | 
			
		
	
		
			
				
					|  |  |  |  |         prop="batchNo" | 
			
		
	
	
		
			
				
					|  |  |  | @ -39,18 +40,18 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        width="120"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |         label="扫码数量" | 
			
		
	
		
			
				
					|  |  |  |  |         prop="scanCount" | 
			
		
	
		
			
				
					|  |  |  |  |         width="80" | 
			
		
	
		
			
				
					|  |  |  |  |         show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |       ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        label="实际数量"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        prop="reCount"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        width="80"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--<el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--  label="扫码数量"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--  prop="scanCount"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--  width="80"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--  show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      <el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        label="实际数量"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        prop="reCount"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        width="80"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |         label="生产日期" | 
			
		
	
		
			
				
					|  |  |  |  |         prop="productDate" | 
			
		
	
	
		
			
				
					|  |  |  | @ -77,88 +78,89 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-table-column label="操作" width="140" fixed="right">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        <template slot-scope="scope">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            @click.native.stop="deleteCode(scope.$index, scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          >减一--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          <el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            type="text"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            size="small"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            :disabled="scope.row.relId!=null"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            @click.native.stop="bindRl(scope.row)"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          >绑定产品–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          </el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          >–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          <el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            type="text"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            size="small"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            :disabled="scope.row.supId!=null"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–            @click.native.stop="handleUnitClick(scope.row)"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          >绑定供应商–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          </el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–          >–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            @click.native.stop="editCode(scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          >编辑--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        </template>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      <el-table-column label="操作" width="140" fixed="right">--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        <template slot-scope="scope">--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            @click.native.stop="deleteCode(scope.$index, scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          >减一--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          >--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          <el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            type="text"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            size="small"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            :disabled="scope.row.relId!=null"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            @click.native.stop="bindRl(scope.row)"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          >绑定产品–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          </el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          >–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          <el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            type="text"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            size="small"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            :disabled="scope.row.supId!=null"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–            @click.native.stop="handleUnitClick(scope.row)"–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          >绑定供应商–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          </el-button–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <!–          >–>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--            @click.native.stop="editCode(scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          >编辑--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--          >--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        </template>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--<pagination--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--  v-show="total>0"--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--  :total="total"--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--  :limit.sync="filterQuery.limit"--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--  :page.sync="filterQuery.page"--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--  @pagination="handleCurrentChange"--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--></pagination>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--    <el-row v-if="viewType==7">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      <el-col span="10">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        <div style="float: left">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <div style="background-color: #FC4A45;width: 10px;height: 10px"></div>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <td><span>红色:多余条码</span></td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <div style="background-color: #F4BD25;width: 10px;height: 10px;margin-left: 15px"></div>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <span>黄色:包含多余条码</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <pagination | 
			
		
	
		
			
				
					|  |  |  |  |       v-show="codeTotal>0" | 
			
		
	
		
			
				
					|  |  |  |  |       :total="codeTotal" | 
			
		
	
		
			
				
					|  |  |  |  |       :limit.sync="codeQuery.limit" | 
			
		
	
		
			
				
					|  |  |  |  |       :page.sync="codeQuery.page" | 
			
		
	
		
			
				
					|  |  |  |  |       @pagination="getCodeList" | 
			
		
	
		
			
				
					|  |  |  |  |     ></pagination> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--    <el-row v-if="viewType==7">--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--      <el-col span="10">--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--        <div style="float: left">--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--            <div style="background-color: #FC4A45;width: 10px;height: 10px"></div>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          <td><span>红色:多余条码</span></td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--            <div style="background-color: #F4BD25;width: 10px;height: 10px;margin-left: 15px"></div>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          <td>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--            <span>黄色:包含多余条码</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--          </td>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <!--        </div>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--      </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--        </div>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--      </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <!--    </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <!--    </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   </div> | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import {deleteCodesTempById, errorCodeList, updateCodeBindSup} from "@/api/inout/order"; | 
			
		
	
		
			
				
					|  |  |  |  | import { deleteCodesTempById, errorCodeList, updateCodeBindSup } from '@/api/inout/order' | 
			
		
	
		
			
				
					|  |  |  |  | import { getCodeDetail } from '@/api/collect/collectOrder' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import {parseTime} from "@/utils/coTools"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCheckDetailCodes} from "@/api/inout/orderDetailCode"; | 
			
		
	
		
			
				
					|  |  |  |  | import { parseTime } from '@/utils/coTools' | 
			
		
	
		
			
				
					|  |  |  |  | import { getCheckDetailCodes } from '@/api/inout/orderDetailCode' | 
			
		
	
		
			
				
					|  |  |  |  | import { getCodeEndList } from '@/api/collect/IoCollectCodeSelect' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: "PanelDestroyCodeDetail", | 
			
		
	
		
			
				
					|  |  |  |  |   name: 'PanelDestroyCodeDetail', | 
			
		
	
		
			
				
					|  |  |  |  |   props: { | 
			
		
	
		
			
				
					|  |  |  |  |     prescribeData: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     refreshPanel: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Function, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     // selectRlTitle: { | 
			
		
	
		
			
				
					|  |  |  |  |     //   type: Object, | 
			
		
	
	
		
			
				
					|  |  |  | @ -174,7 +176,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     // }, | 
			
		
	
		
			
				
					|  |  |  |  |     viewType: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -182,8 +184,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       loading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       query: { | 
			
		
	
		
			
				
					|  |  |  |  |         code: "", | 
			
		
	
		
			
				
					|  |  |  |  |         corpOrderId: "", | 
			
		
	
		
			
				
					|  |  |  |  |         code: '', | 
			
		
	
		
			
				
					|  |  |  |  |         corpOrderId: '' | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       codeDetail: null, | 
			
		
	
		
			
				
					|  |  |  |  |       codeArray: [], | 
			
		
	
	
		
			
				
					|  |  |  | @ -194,66 +196,87 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       editCodeVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       editOriginCodeVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       fromCorp: null, | 
			
		
	
		
			
				
					|  |  |  |  |       codeQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         code: '', | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: '', | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |         selectType: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         relId: '' | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       codeTotal:0 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     getCodeList() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       getCodeDetail({ id:this.prescribeData.id }) //查找该单号下的所有条码 | 
			
		
	
		
			
				
					|  |  |  |  |           .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.codeArray = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |  |           .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true | 
			
		
	
		
			
				
					|  |  |  |  |       // | 
			
		
	
		
			
				
					|  |  |  |  |       // getCodeDetail({ id:this.prescribeData.id }) //查找该单号下的所有条码 | 
			
		
	
		
			
				
					|  |  |  |  |       //     .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |       //       this.codeArray = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |       //       this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |       //     }) | 
			
		
	
		
			
				
					|  |  |  |  |       //     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       //       this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |       //       this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |       //     }); | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeQuery.billNo = this.prescribeData.orderIdFk | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeQuery.relId = this.prescribeData.relId | 
			
		
	
		
			
				
					|  |  |  |  |       getCodeEndList(this.codeQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.codeArray = res.data.list || [] | 
			
		
	
		
			
				
					|  |  |  |  |           this.codeTotal= res.data.total || 0 | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false | 
			
		
	
		
			
				
					|  |  |  |  |           this.codeTotal = 0 | 
			
		
	
		
			
				
					|  |  |  |  |           this.codeArray = [] | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     deleteCode(index, row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$confirm("是否确定移除一个条码?", "提示", { | 
			
		
	
		
			
				
					|  |  |  |  |         confirmButtonText: "确定", | 
			
		
	
		
			
				
					|  |  |  |  |         cancelButtonText: "取消", | 
			
		
	
		
			
				
					|  |  |  |  |         type: "warning", | 
			
		
	
		
			
				
					|  |  |  |  |       this.$confirm('是否确定移除一个条码?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |         confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |         cancelButtonText: '取消', | 
			
		
	
		
			
				
					|  |  |  |  |         type: 'warning' | 
			
		
	
		
			
				
					|  |  |  |  |       }).then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = true | 
			
		
	
		
			
				
					|  |  |  |  |         let tQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |           id: row.id | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         deleteCodesTempById(tQuery) | 
			
		
	
		
			
				
					|  |  |  |  |           .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |               this.refreshPanel(); | 
			
		
	
		
			
				
					|  |  |  |  |               this.refreshPanel() | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |               this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |               this.$message.error(response.message) | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false | 
			
		
	
		
			
				
					|  |  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     bindRl(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.curRow = val; | 
			
		
	
		
			
				
					|  |  |  |  |       this.fromCorp = this.idQuery.fromCorp; | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectRlVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.curRow = val | 
			
		
	
		
			
				
					|  |  |  |  |       this.fromCorp = this.idQuery.fromCorp | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectRlVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     handleUnitClick(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.curRow = row; | 
			
		
	
		
			
				
					|  |  |  |  |       this.dialogTableVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.curRow = row | 
			
		
	
		
			
				
					|  |  |  |  |       this.dialogTableVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     editCode(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.editTitle = "编辑条码"; | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeDetail = row; | 
			
		
	
		
			
				
					|  |  |  |  |       this.editCodeVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.editTitle = '编辑条码' | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeDetail = row | 
			
		
	
		
			
				
					|  |  |  |  |       this.editCodeVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     rowStyle({row, rowIndex}) { | 
			
		
	
		
			
				
					|  |  |  |  |     rowStyle({ row, rowIndex }) { | 
			
		
	
		
			
				
					|  |  |  |  |       // let rowBackground = {}; | 
			
		
	
		
			
				
					|  |  |  |  |       // if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) { | 
			
		
	
		
			
				
					|  |  |  |  |       //   rowBackground.color = '#f60303'; | 
			
		
	
	
		
			
				
					|  |  |  | @ -270,77 +293,78 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       let query = { | 
			
		
	
		
			
				
					|  |  |  |  |         id: this.curRow.id, | 
			
		
	
		
			
				
					|  |  |  |  |         relId: row.id, | 
			
		
	
		
			
				
					|  |  |  |  |         mySupId: row.unitFk, | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |         mySupId: row.unitFk | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       updateCodeBindSup(query).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.success("绑定成功"); | 
			
		
	
		
			
				
					|  |  |  |  |           this.orderFormData.id = this.curRow.orderId; | 
			
		
	
		
			
				
					|  |  |  |  |           this.closeBindDialog(); | 
			
		
	
		
			
				
					|  |  |  |  |           this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.success('绑定成功') | 
			
		
	
		
			
				
					|  |  |  |  |           this.orderFormData.id = this.curRow.orderId | 
			
		
	
		
			
				
					|  |  |  |  |           this.closeBindDialog() | 
			
		
	
		
			
				
					|  |  |  |  |           this.getCodeList() | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           if (response.code == 503) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.curRow = response.data; | 
			
		
	
		
			
				
					|  |  |  |  |             this.orderFormData.id = this.curRow.orderId; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             this.selectUnitTitle = response.message; | 
			
		
	
		
			
				
					|  |  |  |  |             this.handleUnitClick(response.data); | 
			
		
	
		
			
				
					|  |  |  |  |           } else | 
			
		
	
		
			
				
					|  |  |  |  |             this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |             this.curRow = response.data | 
			
		
	
		
			
				
					|  |  |  |  |             this.orderFormData.id = this.curRow.orderId | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList() | 
			
		
	
		
			
				
					|  |  |  |  |             this.selectUnitTitle = response.message | 
			
		
	
		
			
				
					|  |  |  |  |             this.handleUnitClick(response.data) | 
			
		
	
		
			
				
					|  |  |  |  |           } else { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$message.error(response.message) | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     selectSupUnit(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       let query = { | 
			
		
	
		
			
				
					|  |  |  |  |         id: this.curRow.id, | 
			
		
	
		
			
				
					|  |  |  |  |         supId: row.erpId, | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |         supId: row.erpId | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       updateCodeBindSup(query).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.success("绑定成功"); | 
			
		
	
		
			
				
					|  |  |  |  |           this.idQuery.id = this.curRow.orderId; | 
			
		
	
		
			
				
					|  |  |  |  |           this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |           this.refreshPanel(); | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.success('绑定成功') | 
			
		
	
		
			
				
					|  |  |  |  |           this.idQuery.id = this.curRow.orderId | 
			
		
	
		
			
				
					|  |  |  |  |           this.getCodeList() | 
			
		
	
		
			
				
					|  |  |  |  |           this.refreshPanel() | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(response.message) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     closeBindDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectRlVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.dialogTableVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshPanel(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectRlVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       this.dialogTableVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshPanel() | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     closeCodeDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.editCodeVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.editOriginCodeVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshPanel(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.editCodeVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       this.editOriginCodeVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshPanel() | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     repeatAddCode(editData) { | 
			
		
	
		
			
				
					|  |  |  |  |       let tQuery = editData; | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.orderId = this.orderFormData.id; | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.action = this.orderFormData.action; | 
			
		
	
		
			
				
					|  |  |  |  |       this.closeCodeDialog(); | 
			
		
	
		
			
				
					|  |  |  |  |       let tQuery = editData | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.orderId = this.orderFormData.id | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}') | 
			
		
	
		
			
				
					|  |  |  |  |       tQuery.action = this.orderFormData.action | 
			
		
	
		
			
				
					|  |  |  |  |       this.closeCodeDialog() | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.prescribeData.id != null) | 
			
		
	
		
			
				
					|  |  |  |  |       this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |     console.log('hahhahahah', this.prescribeData) | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.prescribeData.id != null) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.getCodeList() | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   components: { | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   components: {} | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |