warehouseManagementNoWeightOut.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347
  1. // 完善出库信息
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">出库毛重检斤</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
  10. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  11. </el-button>
  12. </el-col>
  13. </el-row>
  14. <ws-form ref="dataList" :model="dataList" :rules="rules">
  15. <div class="basicInformation">
  16. <h2>
  17. {{ this.deptBudgetList1.warehouseName }}库
  18. <span class="position" v-show="this.$route.query.warehouseType == 1">
  19. {{ this.deptBudgetList1.binNumber }}仓位
  20. </span>
  21. <span v-show="this.$route.query.warehouseType == 2"> (临) </span>
  22. </h2>
  23. <div class="small-title">基本信息</div>
  24. <ws-info-table>
  25. <!--任务编号-->
  26. <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
  27. <el-select filterable clearable v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
  28. @change="contractNoChange">
  29. <el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
  30. :value="item.inOutTaskNo" />
  31. </el-select>
  32. </ws-form-item>
  33. <ws-form-item label="合同编号" span="1" prop="contractNo">
  34. <ws-select v-model="dataList.contractNo" placeholder="请选择合同编号或移库任务编号" class="typeselect"
  35. @change='contractNoChange'>
  36. <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
  37. :value="item.contractNo" />
  38. </ws-select>
  39. </ws-form-item>
  40. <!-- 货名 -->
  41. <ws-form-item label="货名" span="1">
  42. <ws-select disabled v-model="dataList.goodsName" placeholder class="typeselect" @change="selectgoodsName">
  43. <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  44. :value="item.constValue" />
  45. </ws-select>
  46. </ws-form-item>
  47. <ws-form-item label="类型" span="1" prop="type">
  48. <ws-select v-model="dataList.type" @change="typeChange">
  49. <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
  50. </ws-select>
  51. </ws-form-item>
  52. <!--毛重(公斤)-->
  53. <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
  54. <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="dataList.grossWeight"
  55. placeholder="请输入毛重" maxlength="20" size="small" />
  56. <el-button type="primary" @click="openPort">重新获取</el-button>
  57. </ws-form-item>
  58. <!--皮重(公斤)-->
  59. <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
  60. <ws-input :disabled="allowEdit" @input="tarechange" v-model="dataList.tare" placeholder="请输入皮重"
  61. maxlength="100" size="small" />
  62. </ws-form-item>
  63. <!--净重(公斤)-->
  64. <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
  65. <ws-input readonly="readonly" v-model="dataList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
  66. size="small" />
  67. </ws-form-item>
  68. <ws-form-item v-if='dataList.type=="潮粮"' label="扣重比" span="1" prop="buckleWeightRatio" class="readonly">
  69. <ws-input @input='pureweight' v-model="dataList.buckleWeightRatio" placeholder="请输入扣重比" maxlength="100"
  70. size="small" />
  71. </ws-form-item>
  72. <ws-form-item v-if='dataList.type=="潮粮"' label="干粮水分占比" span="1" prop="solidGrainWater" class="readonly">
  73. <ws-input @input='pureweight' v-model="dataList.solidGrainWater" placeholder="请输入干粮水分占比" maxlength="100"
  74. size="small" />
  75. </ws-form-item>
  76. <ws-form-item v-if='dataList.type=="潮粮"' label="潮粮水分占比" span="1" prop="tidalGrainWater" class="readonly">
  77. <ws-input @input='pureweight' v-model="dataList.tidalGrainWater" placeholder="请输入潮粮水分占比" maxlength="100"
  78. size="small" />
  79. </ws-form-item>
  80. <ws-form-item v-if='dataList.type=="潮粮"' label="纯重" span="1" prop="pureWeight" class="readonly">
  81. <ws-input disabled v-model="dataList.pureWeight" placeholder="不可编辑,自动计算" maxlength="100" size="small" />
  82. </ws-form-item>
  83. <!-- 品级 -->
  84. <ws-form-item label="品级" span="1" class="readonly">
  85. <ws-select v-model="dataList.grade" placeholder="" class="typeselect" @change="selectpackingMethod">
  86. <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  87. :value="item.constValue" />
  88. </ws-select>
  89. </ws-form-item>
  90. <!--经办人-->
  91. <ws-form-item label="经办人" span="1" prop="agent">
  92. <el-select v-model="dataList.agent" placeholder="请选择经办人" filterable clearable @change="selectstaff">
  93. <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
  94. </el-select>
  95. </ws-form-item>
  96. <!--出库日期-->
  97. <ws-form-item label="出库日期" span="1" prop="inOutDate" class="deliverydate">
  98. <ws-date-picker v-model="dataList.inOutDate" type="date" placeholder="请选择出库日期" value-format="yyyy-MM-dd" />
  99. </ws-form-item>
  100. <!-- 出库类型 -->
  101. <ws-form-item label="出库类型" span="1">
  102. <ws-select v-model="dataList.inOutType" placeholder="" class="typeselect" @change="selectstorageType">
  103. <ws-option v-for="item in deliveryType" :key="item.constKey" :label="item.constValue"
  104. :value="item.constValue" />
  105. </ws-select>
  106. </ws-form-item>
  107. <!--车牌号-->
  108. <ws-form-item label="车牌号" span="1" prop="carNo">
  109. <ws-input v-if="!carstatus" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="20" size="small" />
  110. <el-select v-if="carstatus" filterable clearable :filter-method="dataFilter2" v-model="deptBudgetList.carNo"
  111. placeholder="请选择车牌号" class="typeselect" @change="carChange">
  112. <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'"
  113. :value="item.carNo" />
  114. </el-select>
  115. </ws-form-item>
  116. </ws-info-table>
  117. </div>
  118. <!-- <div class="small-title">上传磅单照片</div>
  119. <el-upload
  120. action="https://www.zthymaoyi.com/upload/admin"
  121. :show-file-list="false"
  122. :on-success="
  123. (res) => {
  124. uploadSuccessHandle1(res)
  125. }
  126. "
  127. class="avatar-uploader"
  128. accept=".jpg, .jpeg, .png, .gif"
  129. ><el-button size="small" type="primary">点击上传</el-button>
  130. </el-upload>
  131. <div v-if='dataList.addressUrl!=""'>
  132. <img style='width:100px;height:100px;' :src="dataList.addressUrl" alt="">
  133. </div> -->
  134. <div class="small-title">化验数据(选填)</div>
  135. <div class="inspector">
  136. <!--质检员-->
  137. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  138. <ws-input
  139. v-model="dataList.warehouseInOutDetail.qualityInspector"
  140. placeholder="请输入质检员姓名"
  141. maxlength="120"
  142. size="small"
  143. />
  144. </ws-form-item> -->
  145. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  146. <el-select v-model="dataList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable clearable>
  147. <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
  148. :value="item.staffName" />
  149. </el-select>
  150. </ws-form-item>
  151. </div>
  152. <div class="neifor">
  153. <ws-info-table>
  154. <!--水分(%)<=-->
  155. <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
  156. <ws-input v-model="dataList.warehouseInOutDetail.waterContent" placeholder="请输入水分占比" maxlength="120"
  157. size="small" />
  158. </ws-form-item>
  159. <!--杂质(%)<=-->
  160. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  161. <ws-input v-model="dataList.warehouseInOutDetail.impurity" placeholder="请输入杂质占比" maxlength="120"
  162. size="small" />
  163. </ws-form-item>
  164. <!--容重(克/升)>=-->
  165. <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
  166. <ws-input v-model="dataList.warehouseInOutDetail.bulkDensity" placeholder="请输入容重" maxlength="120"
  167. size="small" />
  168. </ws-form-item>
  169. <!--霉变粒(%)<=-->
  170. <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
  171. <ws-input v-model="dataList.warehouseInOutDetail.mildewGrain" placeholder="请输入霉变粒占比" maxlength="120"
  172. size="small" />
  173. </ws-form-item>
  174. <!--热损伤(%)<=-->
  175. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  176. <ws-input v-model="dataList.warehouseInOutDetail.jiaorenli" placeholder="请输入热损伤占比" maxlength="120"
  177. size="small" />
  178. </ws-form-item>
  179. <!--不完善粒(%)<=-->
  180. <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain">
  181. <ws-input v-model="dataList.warehouseInOutDetail.imperfectGrain" placeholder="请输入不完善粒占比" maxlength="120"
  182. size="small" />
  183. </ws-form-item>
  184. </ws-info-table>
  185. </div>
  186. <div style="text-align: right; padding: 10px">
  187. <!-- <el-button
  188. class="bg-bottom-up"
  189. type="primary"
  190. size="small"
  191. @click="temporaryStorage()"
  192. >暂存</el-button
  193. > -->
  194. <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
  195. </div>
  196. </ws-form>
  197. </div>
  198. </template>
  199. <script>
  200. import {
  201. pullDown,
  202. addstorageputList,
  203. xialaNo,
  204. getstaff,
  205. getPrintInfo,
  206. getReceiptTaskNo
  207. } from '@/model/warehouse/index'
  208. import {
  209. downloadFile
  210. } from '@/utils/batchDown'
  211. import Pagination from '@/components/Pagination'
  212. import WsUpload from '@/components/WsUpload'
  213. import {
  214. mapActions,
  215. mapGetters,
  216. mapState
  217. } from 'vuex'
  218. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  219. import {
  220. dayjs,
  221. EventBus
  222. } from 'base-core-lib'
  223. export default {
  224. name: 'viewSpareMoney',
  225. components: {
  226. WsUpload,
  227. Pagination,
  228. },
  229. watch: {
  230. isShow(val) {
  231. this.showType = val
  232. },
  233. dataList: { //深度监听,可监听到对象、数组的变化
  234. handler(val, oldVal) {
  235. if (val.grossWeight) {
  236. this.dataList.netWeight = val.grossWeight - this.dataList.tare
  237. }
  238. },
  239. deep: true //true 深度监听
  240. }
  241. },
  242. computed: {
  243. ...mapGetters(['deptBudgetList']),
  244. },
  245. data() {
  246. return {
  247. deptBudgetList2: [],
  248. //弹出框
  249. dialogViewSpareMoney: false,
  250. dialogApproveFormVisible: false,
  251. // 船舶类型
  252. monetaryKey: null,
  253. // 表格显示数据
  254. tableDate: [],
  255. // 是否显示
  256. showType: true,
  257. // 年
  258. year: '',
  259. readonly: true,
  260. typeList: ['干粮', '潮粮'],
  261. qualityInspectorList: [],
  262. deptBudgetTotal: 0,
  263. currentPage: 1,
  264. pageSize: 10,
  265. searchType: 1,
  266. searchKeyWord: '',
  267. contractType: 2,
  268. startDate: null,
  269. endDate: null,
  270. goodnameList: {},
  271. tranCarInfoList: [],
  272. staffList: [],
  273. options: [],
  274. options1: [],
  275. options2: [],
  276. carstatus: false,
  277. storageType: [],
  278. deliveryType: [],
  279. outContractNo: [],
  280. // 提交类型
  281. submitType: true,
  282. storageType: [],
  283. appendixIdsAdd: '',
  284. uploadSuccess: {},
  285. onChange: {},
  286. deptBudgetList1: [],
  287. gradeList: [],
  288. rules: {
  289. netWeight: [{
  290. required: true,
  291. type: 'number',
  292. message: '请输入活动名称',
  293. trigger: 'blur',
  294. }, ],
  295. },
  296. size: 10,
  297. compId: sessionStorage.getItem('ws-pf_compId'),
  298. secretaryWeigher: sessionStorage.getItem('ws-pf_staffName'),
  299. deptCircularPage: {},
  300. packtypeList: {},
  301. date: {
  302. year: dayjs().format('YYYY'),
  303. month: dayjs().format('MM'),
  304. },
  305. contractList: [],
  306. dataList: {
  307. id: '',
  308. grossWeight: '',
  309. contractNo: '',
  310. tare: '',
  311. netWeight: '',
  312. grade: '',
  313. agent: '',
  314. carNo: '',
  315. inOutDate: '',
  316. inOutType: '',
  317. goodsName: '',
  318. warehouseInOutDetail: {
  319. qualityInspector: ''
  320. },
  321. cost: '',
  322. freight: 0,
  323. type: '',
  324. addressUrl: '',
  325. buckleWeightRatio: '',
  326. tidalGrainWater: '',
  327. solidGrainWater: '',
  328. pureWeight: '',
  329. deductionAmount: '',
  330. deductionWeigh: '',
  331. },
  332. historyList: [],
  333. pickerBeginDateBefore: {
  334. disabledDate: (time) => {
  335. return time.getTime() > Date.now()
  336. },
  337. },
  338. accessoryTFs: false,
  339. param: 9600,
  340. allowEdit: true,
  341. result1: '00'
  342. }
  343. },
  344. activated() {
  345. if (this.$route.query.allowEdit == 1) {
  346. this.allowEdit = false
  347. } else {
  348. this.allowEdit = true
  349. }
  350. this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
  351. this.deptBudgetList1.binNumber = this.$route.query.binNumber
  352. this.getList()
  353. this.dataList.id = this.$route.query.id
  354. this.dataList.grossWeight = Math.round(this.$route.query.grossWeight * 1000)
  355. this.dataList.contractNo = this.$route.query.contractNo
  356. this.dataList.baseId = this.$route.query.baseId
  357. this.dataList.positionId = this.$route.query.positionId
  358. this.dataList.warehouseName = this.$route.query.warehouseName
  359. this.dataList.binNumber = this.$route.query.binNumber
  360. this.dataList.tare = Math.round(this.$route.query.tare * 1000)
  361. this.dataList.netWeight = Math.round(this.$route.query.netWeight * 1000)
  362. this.dataList.grade = this.$route.query.grade
  363. this.dataList.agent = this.$route.query.agent
  364. this.dataList.carNo = this.$route.query.carNo
  365. this.dataList.inOutDate = this.$route.query.inOutDate
  366. this.dataList.contractNo = this.$route.query.contractNo
  367. this.dataList.inOutType = this.$route.query.inOutType
  368. this.dataList.compId = this.$route.query.compId
  369. this.dataList.goodsName = this.$route.query.goodsName
  370. this.dataList.goodsNameKey = Number(this.$route.query.goodsNameKey)
  371. this.dataList.inOutFlag = this.$route.inOutFlag
  372. this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
  373. this.dataList.statusFlag = this.$route.statusFlag
  374. this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
  375. console.log(this.dataList)
  376. getReceiptTaskNo().toPromise()
  377. .then((response) => {
  378. console.log(response)
  379. this.deptBudgetList2 = response
  380. })
  381. },
  382. methods: {
  383. async closePort() {
  384. console.log('closePort');
  385. this.reader.cancel()
  386. },
  387. async openPort() {
  388. console.log('openPort', navigator);
  389. if ('serial' in navigator) {
  390. // The Web Serial API is supported.
  391. console.log('the Web Serial API is supported.');
  392. console.log(this.param);
  393. const port = await navigator.serial.requestPort();
  394. await port.open({
  395. baudRate: this.param
  396. }); // set baud rate
  397. this.reader = port.readable.getReader();
  398. // 监听来自串行设备的数据
  399. while (true) {
  400. const {
  401. value,
  402. done
  403. } = await this.reader.read();
  404. // console.log("value",value);
  405. if (done) {
  406. // 允许稍后关闭串口。
  407. this.reader.releaseLock();
  408. break;
  409. }
  410. var result = '';
  411. //2。获取16进制字符串
  412. // var receData = HexConvert.ByteToString(value);
  413. // console.log("receData",receData);
  414. var flag = false;
  415. var flag1 = false;
  416. // for (var i = 0; i < value.length; i++) {
  417. // var tmp = String.fromCharCode(value[i])
  418. // if (tmp == '+') {
  419. // flag = true
  420. // }
  421. // if (flag && result.length < 6 && tmp != '+') {
  422. // result += tmp
  423. // }
  424. // }
  425. // if(parseInt(result)){
  426. // this.dataList.grossWeight = parseInt(result)
  427. // }
  428. if (this.deptBudgetList1.warehouseName && (this.deptBudgetList.warehouseName == '山东诸城迈饶库' || this
  429. .deptBudgetList.warehouseName == '克东千红库' || this.warehouseName == '鲅鱼圈祥腾库')) {
  430. for (var i = 0; i < value.length; i++) {
  431. var tmp = String.fromCharCode(value[i])
  432. if (tmp == '+') {
  433. flag = true
  434. }
  435. if (flag && result.length < 6 && tmp != '+') {
  436. result += tmp
  437. }
  438. }
  439. if (parseInt(result) || parseInt(result) == 0) {
  440. this.dataList.grossWeight = parseInt(result)
  441. }
  442. } else {
  443. for (var i = 0; i < value.length; i++) {
  444. var tmp = String.fromCharCode(value[i])
  445. if ((value[0] != 49 && value[0] != 2)) {
  446. if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
  447. flag1 = true
  448. } else {
  449. break
  450. }
  451. }
  452. if (tmp == String.fromCharCode(32)) {
  453. flag = true
  454. }
  455. if (flag && result.length < 7 && tmp != String.fromCharCode(32) && !(value[value.length - 1] == 48 &&
  456. value[value.length - 2] == 48)) {
  457. result += tmp
  458. }
  459. if (flag1 && tmp != String.fromCharCode(32)) {
  460. if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
  461. if (i == 0) {
  462. this.result1 = tmp + '0'
  463. }
  464. }
  465. }
  466. }
  467. if (parseInt(result) || parseInt(result) == 0) {
  468. this.dataList.grossWeight = parseInt(result + this.result1)
  469. }
  470. }
  471. setTimeout(1000)
  472. // value 是一个 Uint8Array
  473. }
  474. await port.close();
  475. } else {
  476. console.log('the Web Serial API is not supported.', navigator);
  477. }
  478. },
  479. pureweight(status) {
  480. console.log(this.deptBudgetList)
  481. if (this.deptBudgetList.netWeight && this.deptBudgetList.tidalGrainWater && this.deptBudgetList
  482. .solidGrainWater && this.deptBudgetList.buckleWeightRatio) {
  483. this.deptBudgetList.pureWeight = (this.deptBudgetList.netWeight * (100 - (this.deptBudgetList
  484. .tidalGrainWater - this.deptBudgetList.solidGrainWater) * this.deptBudgetList.buckleWeightRatio)) / 100
  485. }
  486. },
  487. uploadSuccessHandle1(res) {
  488. this.dataList.addressUrl = res.url
  489. },
  490. //返回按钮
  491. revert() {
  492. this.$router.go(-1)
  493. },
  494. dataFilter(val) {
  495. // console.log(val,"名")
  496. this.deptBudgetList.staffList = val
  497. if (val) {
  498. //val存在
  499. this.options = this.staffList.filter((item) => {
  500. if (
  501. !!~item.staffName.indexOf(val) ||
  502. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  503. ) {
  504. return true
  505. }
  506. })
  507. } else {
  508. //val为空时,还原数组
  509. this.options = this.staffList
  510. }
  511. },
  512. selectstaff(e) {
  513. for (var i = 0; i < this.staffList.length; i++) {
  514. if (this.staffList[i].staffName == e) {
  515. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  516. }
  517. }
  518. },
  519. //暂存按钮
  520. temporaryStorage() {
  521. this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
  522. cancelButtonText: '取消',
  523. confirmButtonText: '确定',
  524. type: 'warning',
  525. })
  526. .then(() => {
  527. this.$refs.dataList.validate((valid) => {
  528. if (valid) {
  529. this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
  530. this.dataList.inOutFlag = 1
  531. this.dataList.statusFlag = 1
  532. addstorageputList(this.dataList)
  533. .toPromise()
  534. .then((response) => {
  535. this.$message.success('暂存成功')
  536. this.$router.push({
  537. path: 'warehouseManagementList'
  538. })
  539. })
  540. } else {
  541. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  542. return false
  543. }
  544. })
  545. })
  546. .catch(() => {
  547. return false
  548. })
  549. },
  550. contractNoChange(e) {
  551. for (var i = 0; i < this.outContractNo.length; i++) {
  552. if (this.outContractNo[i].contractNo == e) {
  553. if (this.outContractNo[i].inOutType == '销售出库') {
  554. this.deptBudgetList.inOutTypeKey = 1
  555. } else if (this.outContractNo[i].inOutType == '移库出库') {
  556. this.deptBudgetList.inOutTypeKey = 3
  557. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  558. this.deptBudgetList.inOutTypeKey = 4
  559. } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
  560. this.deptBudgetList.inOutTypeKey = 5
  561. } else if (this.detailData.inOutType == '采购出库') {
  562. this.deptBudgetList.inOutTypeKey = 6
  563. }
  564. this.dataList.goodsName = this.outContractNo[i].goodsName
  565. this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
  566. if (this.outContractNo[i].deliverType == '1') {
  567. this.carstatus = true
  568. } else {
  569. this.carstatus = false
  570. }
  571. if (this.outContractNo[i].tranCarInfoList) {
  572. this.options2 = this.outContractNo[i].tranCarInfoList
  573. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  574. // this.carstatus = true
  575. }
  576. }
  577. }
  578. },
  579. typeChange(e) {
  580. },
  581. //提交按钮
  582. submit() {
  583. if (!this.dataList.goodsName) {
  584. this.$message({
  585. message: '货名不能为空',
  586. type: 'warning',
  587. })
  588. return
  589. }
  590. if (!this.dataList.grossWeight) {
  591. this.$message({
  592. message: '毛重不能为空',
  593. type: 'warning',
  594. })
  595. return
  596. }
  597. if (
  598. this.dataList.grossWeight <= 0 ||
  599. this.dataList.grossWeight > 200000 ||
  600. (String(this.dataList.grossWeight).indexOf('.') != -1 &&
  601. String(this.dataList.grossWeight).length -
  602. (String(this.dataList.grossWeight).indexOf('.') + 1) >
  603. 3)
  604. ) {
  605. this.$message({
  606. message: '毛重输入错误',
  607. type: 'warning',
  608. })
  609. return
  610. }
  611. if (
  612. this.dataList.tare < 0 ||
  613. this.dataList.tare > 200000 ||
  614. (String(this.dataList.tare).indexOf('.') != -1 &&
  615. String(this.dataList.tare).length -
  616. (String(this.dataList.tare).indexOf('.') + 1) >
  617. 3)
  618. ) {
  619. this.$message({
  620. message: '皮重输入错误',
  621. type: 'warning',
  622. })
  623. return
  624. }
  625. if (this.dataList.type == '潮粮' && !this.dataList.buckleWeightRatio) {
  626. this.$message({
  627. message: '扣重比不能为空',
  628. type: 'warning'
  629. })
  630. return
  631. }
  632. if (
  633. this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio < 0 ||
  634. this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio > 3 ||
  635. (this.dataList.type == '潮粮' && String(this.dataList.buckleWeightRatio).indexOf('.') != -1 &&
  636. String(this.dataList.buckleWeightRatio).length -
  637. (String(this.dataList.buckleWeightRatio).indexOf('.') + 1) >
  638. 2)
  639. ) {
  640. this.$message({
  641. message: '扣重比输入错误',
  642. type: 'warning'
  643. })
  644. return
  645. }
  646. if (this.dataList.type == '潮粮' && !this.dataList.tidalGrainWater) {
  647. this.$message({
  648. message: '潮粮水分不能为空',
  649. type: 'warning'
  650. })
  651. return
  652. }
  653. if (
  654. this.dataList.type == '潮粮' && this.dataList.tidalGrainWater < 1 ||
  655. this.dataList.type == '潮粮' && this.dataList.tidalGrainWater > 40 ||
  656. (this.dataList.type == '潮粮' && String(this.dataList.tidalGrainWater).indexOf('.') != -1 &&
  657. String(this.dataList.tidalGrainWater).length -
  658. (String(this.dataList.tidalGrainWater).indexOf('.') + 1) >
  659. 2)
  660. ) {
  661. this.$message({
  662. message: '潮粮水分输入错误',
  663. type: 'warning'
  664. })
  665. return
  666. }
  667. if (this.dataList.type == '潮粮' && !this.dataList.solidGrainWater) {
  668. this.$message({
  669. message: '干粮水分不能为空',
  670. type: 'warning'
  671. })
  672. return
  673. }
  674. if (
  675. this.dataList.type == '潮粮' && this.dataList.solidGrainWater < 1 ||
  676. this.dataList.type == '潮粮' && this.dataList.solidGrainWater > 40 ||
  677. (this.dataList.type == '潮粮' && String(this.dataList.solidGrainWater).indexOf('.') != -1 &&
  678. String(this.dataList.solidGrainWater).length -
  679. (String(this.dataList.solidGrainWater).indexOf('.') + 1) >
  680. 1)
  681. ) {
  682. this.$message({
  683. message: '干粮水分输入错误',
  684. type: 'warning'
  685. })
  686. return
  687. }
  688. if (!this.dataList.agent) {
  689. this.$message({
  690. message: '经办人不能为空',
  691. type: 'warning',
  692. })
  693. return
  694. }
  695. if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
  696. this.$message({
  697. message: '经办人输入有误',
  698. type: 'warning',
  699. })
  700. return
  701. }
  702. if (!this.dataList.grade) {
  703. this.$message({
  704. message: '品级不能为空!',
  705. type: 'warning',
  706. })
  707. return
  708. }
  709. if (!this.dataList.inOutDate) {
  710. this.$message({
  711. message: '入库日期不能为空!',
  712. type: 'warning',
  713. })
  714. return
  715. }
  716. if (!this.dataList.inOutType) {
  717. this.$message({
  718. message: '出库类型不能为空!',
  719. type: 'warning',
  720. })
  721. return
  722. }
  723. if (!this.dataList.carNo) {
  724. this.$message({
  725. message: '车牌号不能为空',
  726. type: 'warning',
  727. })
  728. return
  729. }
  730. if (this.dataList.carNo.length > 7) {
  731. this.$message({
  732. message: '车牌号输入错误,请输入7个字符之内',
  733. type: 'warning',
  734. })
  735. return
  736. }
  737. if (!this.dataList.contractNo) {
  738. this.$message({
  739. message: '合同编号不能为空',
  740. type: 'warning',
  741. })
  742. return
  743. }
  744. // if (
  745. // this.dataList.contractNo.length < 6 ||
  746. // this.dataList.contractNo.length > 20
  747. // ) {
  748. // this.$message({
  749. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  750. // type: 'warning',
  751. // })
  752. // return
  753. // }
  754. if (this.dataList.netWeight > this.$route.query.capacity) {
  755. this.$message({
  756. message: '入库量大于该仓库容量!',
  757. type: 'warning',
  758. })
  759. return
  760. }
  761. //自检员
  762. if (this.dataList.warehouseInOutDetail.qualityInspector) {
  763. if (
  764. this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
  765. this.dataList.warehouseInOutDetail.qualityInspector.length > 10
  766. ) {
  767. this.$message({
  768. message: '质检员姓名长度错误!',
  769. type: 'warning',
  770. })
  771. return
  772. }
  773. }
  774. if (this.dataList.warehouseInOutDetail.waterContent) {
  775. if (isNaN(this.dataList.warehouseInOutDetail.waterContent)) {
  776. this.$message({
  777. message: '水分(%)非数字!',
  778. type: 'warning',
  779. })
  780. return
  781. }
  782. if (
  783. this.dataList.warehouseInOutDetail.waterContent < 1 ||
  784. this.dataList.warehouseInOutDetail.waterContent > 40 ||
  785. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  786. '.'
  787. ) != -1 &&
  788. String(this.dataList.warehouseInOutDetail.waterContent).length -
  789. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  790. '.'
  791. ) +
  792. 1) >
  793. 2)
  794. ) {
  795. this.$message({
  796. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  797. type: 'warning',
  798. })
  799. return
  800. }
  801. }
  802. //杂质
  803. if (this.dataList.warehouseInOutDetail.impurity) {
  804. if (isNaN(this.dataList.warehouseInOutDetail.impurity)) {
  805. this.$message({
  806. message: '杂质(%)非数字!',
  807. type: 'warning',
  808. })
  809. return
  810. }
  811. if (
  812. this.dataList.warehouseInOutDetail.impurity < 1 ||
  813. this.dataList.warehouseInOutDetail.impurity > 40 ||
  814. (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
  815. -1 &&
  816. String(this.dataList.warehouseInOutDetail.impurity).length -
  817. (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
  818. '.'
  819. ) +
  820. 1) >
  821. 2)
  822. ) {
  823. this.$message({
  824. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  825. type: 'warning',
  826. })
  827. return
  828. }
  829. }
  830. //霉变
  831. if (this.dataList.warehouseInOutDetail.mildewGrain) {
  832. if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
  833. this.$message({
  834. message: '霉变粒(%)非数字!',
  835. type: 'warning',
  836. })
  837. return
  838. }
  839. if (
  840. this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
  841. this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
  842. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  843. '.'
  844. ) != -1 &&
  845. String(this.dataList.warehouseInOutDetail.mildewGrain).length -
  846. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  847. '.'
  848. ) +
  849. 1) >
  850. 2)
  851. ) {
  852. this.$message({
  853. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  854. type: 'warning',
  855. })
  856. return
  857. }
  858. }
  859. //热损伤
  860. if (this.dataList.warehouseInOutDetail.jiaorenli) {
  861. if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
  862. this.$message({
  863. message: '热损伤(%)非数字!',
  864. type: 'warning',
  865. })
  866. return
  867. }
  868. if (
  869. this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
  870. this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
  871. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
  872. -1 &&
  873. String(this.dataList.warehouseInOutDetail.jiaorenli).length -
  874. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
  875. '.'
  876. ) +
  877. 1) >
  878. 2)
  879. ) {
  880. this.$message({
  881. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  882. type: 'warning',
  883. })
  884. return
  885. }
  886. }
  887. //不完善粒(%)
  888. if (this.dataList.warehouseInOutDetail.imperfectGrain) {
  889. if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
  890. this.$message({
  891. message: '不完善粒(%)非数字!',
  892. type: 'warning',
  893. })
  894. return
  895. }
  896. if (
  897. this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
  898. this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
  899. (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
  900. '.'
  901. ) != -1 &&
  902. String(this.dataList.warehouseInOutDetail.imperfectGrain).length -
  903. (String(
  904. this.dataList.warehouseInOutDetail.imperfectGrain
  905. ).indexOf('.') +
  906. 1) >
  907. 2)
  908. ) {
  909. this.$message({
  910. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  911. type: 'warning',
  912. })
  913. return
  914. }
  915. }
  916. //容重
  917. if (this.dataList.warehouseInOutDetail.bulkDensity) {
  918. if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
  919. this.$message({
  920. message: '容重(克/升)非数字!',
  921. type: 'warning',
  922. })
  923. return
  924. }
  925. if (
  926. (this.dataList.warehouseInOutDetail.bulkDensity &&
  927. String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
  928. String(this.dataList.warehouseInOutDetail.bulkDensity).length -
  929. (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
  930. 2) || this.dataList.warehouseInOutDetail.bulkDensity > 1000 || this.dataList.warehouseInOutDetail
  931. .bulkDensity < 0
  932. ) {
  933. this.$message({
  934. message: '容重输入错误',
  935. type: 'warning',
  936. })
  937. return
  938. }
  939. }
  940. this.$confirm(`确定提交毛重检斤`, {
  941. cancelButtonText: '取消',
  942. confirmButtonText: '确定',
  943. type: 'warning',
  944. })
  945. .then(() => {
  946. this.$refs.dataList.validate((valid) => {
  947. if (valid) {
  948. this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
  949. this.dataList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName')
  950. this.dataList.inOutFlag = 1
  951. this.dataList.statusFlag = 3
  952. this.dataList.grossWeight /= 1000
  953. this.dataList.tare /= 1000
  954. this.dataList.netWeight /= 1000
  955. this.dataList.pureWeight /= 1000
  956. this.dataList.deductionAmount *= 1000
  957. this.dataList.deductionWeight /= 1000
  958. addstorageputList(this.dataList)
  959. .toPromise()
  960. .then((response) => {
  961. this.$message.success('提交成功')
  962. this.$confirm(`是否打印磅单`, {
  963. cancelButtonText: '取消',
  964. confirmButtonText: '确定',
  965. type: 'warning',
  966. })
  967. .then(() => {
  968. getPrintInfo({
  969. id: this.dataList.id
  970. })
  971. .toPromise()
  972. .then((response) => {
  973. window.open('../../../../static/weightCheckInOut.html?type=2&tableData=' + JSON
  974. .stringify(response))
  975. })
  976. this.$router.push({
  977. path: 'warehouseManagementList'
  978. })
  979. })
  980. .catch(() => {
  981. return false
  982. })
  983. }).catch((response) => {
  984. this.dataList.grossWeight = Math.round(this.dataList.grossWeight*1000)
  985. this.dataList.tare = Math.round(this.dataList.tare*1000)
  986. this.dataList.netWeight = Math.round(this.dataList.netWeight*1000)
  987. this.dataList.pureWeight = Math.round(this.dataList.pureWeight*1000)
  988. this.dataList.deductionAmount = Math.round(this.dataList.deductionAmount/1000)
  989. this.dataList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
  990. })
  991. } else {
  992. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  993. return false
  994. }
  995. })
  996. })
  997. .catch(() => {
  998. return false
  999. })
  1000. },
  1001. tarechange(e) {
  1002. if (this.dataList.grossWeight && this.dataList.tare) {
  1003. this.dataList.netWeight = Number(
  1004. this.dataList.grossWeight - this.dataList.tare
  1005. ).toFixed(2)
  1006. }
  1007. },
  1008. grossWeightchange(e) {
  1009. if (this.dataList.grossWeight && this.dataList.tare) {
  1010. this.dataList.netWeight = Number(
  1011. this.dataList.grossWeight - this.dataList.tare
  1012. ).toFixed(2)
  1013. }
  1014. },
  1015. selectgoodsName(e) {
  1016. for (var i = 0; i < this.goodnameList.length; i++) {
  1017. if (this.goodnameList[i].constValue == e) {
  1018. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1019. }
  1020. }
  1021. },
  1022. selectpackingMethod(e) {
  1023. for (var i = 0; i < this.packtypeList.length; i++) {
  1024. if (this.packtypeList[i].constValue == e) {
  1025. this.dataList.packingMethodKey = this.packtypeList[i].constKey
  1026. }
  1027. }
  1028. },
  1029. selectstorageType(e) {
  1030. for (var i = 0; i < this.deliveryType.length; i++) {
  1031. if (this.deliveryType[i].constValue == e) {
  1032. this.dataList.inOutTypeKey = this.deliveryType[i].constKey
  1033. }
  1034. }
  1035. },
  1036. handleClose() {
  1037. this.accessoryTFs = false
  1038. },
  1039. handleSizeChange(val) {
  1040. console.log(`每页 ${val} 条`)
  1041. this.pageSize = val
  1042. this.getList()
  1043. },
  1044. handleCurrentChange(val) {
  1045. this.currentPage = val
  1046. console.log(`当前页: ${val}`)
  1047. this.getList()
  1048. },
  1049. getList() {
  1050. // 货名
  1051. pullDown({
  1052. constId: 'CON2'
  1053. })
  1054. .toPromise()
  1055. .then((response) => {
  1056. this.goodnameList = response
  1057. })
  1058. // 品级
  1059. pullDown({
  1060. constId: 'CON3'
  1061. })
  1062. .toPromise()
  1063. .then((response) => {
  1064. this.gradeList = response
  1065. })
  1066. // 类型
  1067. if (this.$route.query.warehouseType == '1') {
  1068. pullDown({
  1069. constId: 'CON6'
  1070. })
  1071. .toPromise()
  1072. .then((response) => {
  1073. this.deliveryType = response
  1074. })
  1075. } else if (this.$route.query.warehouseType == '2') {
  1076. //临时仓库出库类型
  1077. pullDown({
  1078. constId: 'WARE2'
  1079. })
  1080. .toPromise()
  1081. .then((response) => {
  1082. this.deliveryType = response
  1083. })
  1084. }
  1085. //合同编号
  1086. xialaNo({
  1087. compId: sessionStorage.getItem('ws-pf_compId'),
  1088. flag: 5
  1089. })
  1090. .toPromise()
  1091. .then((response) => {
  1092. this.outContractNo = response
  1093. for (let i = 0; i < response.length; i++) {
  1094. if (this.dataList.contractNo == response[i].contractNo) {
  1095. if (response[i].deliverType == '1') {
  1096. this.carstatus = true
  1097. } else {
  1098. this.carstatus = false
  1099. }
  1100. }
  1101. }
  1102. })
  1103. //经办人
  1104. getstaff({
  1105. compId: sessionStorage.getItem('ws-pf_compId'),
  1106. warehouseId: this.dataList.baseId
  1107. })
  1108. .toPromise()
  1109. .then((response) => {
  1110. this.options = response
  1111. this.qualityInspectorList = response
  1112. this.staffList = response
  1113. // this.agent = response
  1114. })
  1115. },
  1116. selecttaskType(e) {
  1117. for (var i = 0; i < this.taskTypeList.length; i++) {
  1118. if (this.taskTypeList[i].value == e) {
  1119. this.searchType = this.taskTypeList[i].type
  1120. }
  1121. }
  1122. },
  1123. fujian(row) {
  1124. if (
  1125. row.receiveAttachmentPath === null ||
  1126. row.receiveAttachmentPath === ''
  1127. ) {
  1128. EventBus.$emit(
  1129. 'warning',
  1130. this.$t('system.noticeCircular.NoInformation')
  1131. )
  1132. } else {
  1133. this.accessoryTFs = true
  1134. }
  1135. this.appendixIdss = row.receiveAttachmentPath
  1136. },
  1137. handleExamine(row) {
  1138. this.$router.push({
  1139. name: 'salesContractExamine',
  1140. query: {
  1141. id: row.id
  1142. },
  1143. })
  1144. },
  1145. // 关闭 dialog时 处理文件url 初始化upload组件
  1146. handleCloe() {
  1147. this.dialogViewSpareMoney = false
  1148. },
  1149. history(row) {
  1150. console.log(row)
  1151. billoperatehis({
  1152. id: row.id
  1153. })
  1154. .toPromise()
  1155. .then((response) => {
  1156. this.historyList = response
  1157. })
  1158. },
  1159. //删除
  1160. approve() {},
  1161. listQuery() {},
  1162. total() {},
  1163. clearfiltQuery() {},
  1164. selectCrtDuty() {},
  1165. },
  1166. }
  1167. </script>
  1168. <style lang="scss" scoped>
  1169. /deep/.basicInformation {
  1170. .ws-info-table {
  1171. border: none;
  1172. }
  1173. .el-form-item {
  1174. width: 33.3333%;
  1175. border: none;
  1176. .el-form-item__label {
  1177. background: transparent;
  1178. border: none;
  1179. }
  1180. .el-form-item__content {
  1181. border: none;
  1182. }
  1183. }
  1184. }
  1185. .title {
  1186. position: relative;
  1187. padding-left: 10px;
  1188. }
  1189. .title::before {
  1190. content: '';
  1191. display: inline-block;
  1192. width: 5px;
  1193. height: 30px;
  1194. background: #5473e8;
  1195. position: absolute;
  1196. left: 0;
  1197. }
  1198. .el-form {
  1199. padding: 0 10%;
  1200. }
  1201. .el-button--primary {
  1202. background-color: #5878e8;
  1203. border-color: #5878e8;
  1204. }
  1205. .el-col {
  1206. background: #f6f7fc;
  1207. }
  1208. .bg-right {
  1209. text-align: right;
  1210. padding: 16px 20px;
  1211. }
  1212. .center {
  1213. position: relative;
  1214. top: 50px;
  1215. width: 40%;
  1216. height: 2000px;
  1217. margin: 0 auto;
  1218. }
  1219. /deep/.el-form-item__label {
  1220. width: 160px;
  1221. }
  1222. //选填
  1223. /deep/.el-form-item {
  1224. width: 50%;
  1225. }
  1226. .container {
  1227. overflow: scroll;
  1228. height: 120vh;
  1229. }
  1230. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1231. text-align: center;
  1232. }
  1233. .deliverydate {
  1234. display: inline-block;
  1235. width: 10%;
  1236. }
  1237. .center {
  1238. margin-top: -60px;
  1239. width: 80%;
  1240. }
  1241. //仓位
  1242. .position {
  1243. width: 52px;
  1244. height: 20px;
  1245. background: #afb5cb;
  1246. border-radius: 2px;
  1247. font-size: 12px;
  1248. font-family: PingFangSC-Medium, PingFang SC;
  1249. color: #ffffff;
  1250. line-height: 20px;
  1251. }
  1252. //表格文字
  1253. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1254. text-align: left;
  1255. font-size: 14px;
  1256. font-family: PingFangSC-Regular, PingFang SC;
  1257. font-weight: 400;
  1258. color: #8890b1;
  1259. line-height: 16px;
  1260. }
  1261. .inspector {
  1262. width: 50%;
  1263. }
  1264. //质检员
  1265. .inspector .el-form-item__content {
  1266. text-align: left;
  1267. margin-left: 0px;
  1268. }
  1269. /deep/[data-v-d228e17e] .el-form-item__label {
  1270. width: 60px;
  1271. }
  1272. .small-title {
  1273. position: relative;
  1274. padding: 10px;
  1275. font-weight: 600;
  1276. }
  1277. .small-title::before {
  1278. position: absolute;
  1279. content: '';
  1280. display: block;
  1281. background: #5473e8;
  1282. width: 4px;
  1283. height: 14px;
  1284. left: 0px;
  1285. top: 13px;
  1286. }
  1287. //下面列表
  1288. .neifor {
  1289. width: 80%;
  1290. background-color: #f6f7fc;
  1291. }
  1292. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  1293. width: 35%;
  1294. text-align: center;
  1295. }
  1296. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  1297. width: 60%;
  1298. background-color: #f6f7fc;
  1299. }
  1300. /deep/.neifor .el-input--small .el-input__inner {
  1301. width: 100%;
  1302. }
  1303. .el-input__inner {
  1304. width: 150px;
  1305. }
  1306. </style>